feat: use GITHUB_TOKEN as the jekyll action token

At the start of each workflow run, GitHub automatically creates a
unique GITHUB_TOKEN secret to use in your workflow.
This commit is contained in:
Jeffrey Tse 2021-11-13 19:55:23 +08:00
parent ac3833777c
commit 91558fe2e2

View file

@ -23,7 +23,7 @@ jobs:
- uses: jeffreytse/jekyll-deploy-action@master
with:
provider: 'github'
token: ${{ secrets.GH_TOKEN }} # It's your Personal Access Token(PAT)
token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT)
repository: '' # Default is current repository
branch: 'gh-pages' # Default is gh-pages for github provider
jekyll_src: './' # Default is root directory