-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b29cb2e
commit 4acec32
Showing
3 changed files
with
26 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
with: | ||
submodules: true | ||
- name: Build site | ||
uses: peaceiris/actions-hugo@master | ||
if: github.event.deleted == false | ||
with: | ||
args: --cleanDestinationDir | ||
- name: Deploy site | ||
uses: peaceiris/actions-gh-pages@master | ||
if: success() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PUBLISH_BRANCH: gh-pages | ||
PUBLISH_DIR: ./public |
4acec32
There was a problem hiding this comment.
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
, useACTIONS_DEPLOY_KEY
orPERSONAL_TOKEN
cf. peaceiris/actions-gh-pages#9