Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leonGravel committed Aug 21, 2019
1 parent d61baa0 commit 427d143
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Main workflow

on:
push:
branches:
- hugo

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@hugo
- name: build
uses: peaceiris/[email protected]
with:
args: --gc --minify --cleanDestinationDir
- name: deploy
uses: peaceiris/[email protected]
if: contains(github.ref, 'master')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: master
PUBLISH_DIR: ./public

1 comment on commit 427d143

@peaceiris
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check your GitHub Pages status, you find that GitHub Pages build event did not start.

Please do not use GITHUB_TOKEN, use ACTIONS_DEPLOY_KEY or PERSONAL_TOKEN

cf. peaceiris/actions-gh-pages#9

Please sign in to comment.