Skip to content

Commit

Permalink
Update for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanVaughn committed Sep 1, 2019
1 parent b29cb2e commit 4acec32
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 49 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
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
30 changes: 0 additions & 30 deletions build.py

This file was deleted.

19 changes: 0 additions & 19 deletions deploy.py

This file was deleted.

1 comment on commit 4acec32

@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.