Skip to content

Commit

Permalink
updated GH Pages build with correct baseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
thedanfernandez committed Sep 17, 2019
1 parent 5ea7461 commit 6247f92
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ name: Push Master to GitHub Pages
on:
push:
branches:
- master
- master

jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: build
uses: peaceiris/[email protected]
if: github.event.deleted == false
with:
args: --gc --minify --cleanDestinationDir
- name: deploy
uses: peaceiris/[email protected]
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
- uses: actions/checkout@master
- name: build
uses: peaceiris/[email protected]
if: github.event.deleted == false
with:
args: --gc --minify --cleanDestinationDir --baseUrl 'https://nuevofoundation.github.io/workshops/'
- name: deploy
uses: peaceiris/[email protected]
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public

1 comment on commit 6247f92

@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 and the latest release.

cf. peaceiris/actions-gh-pages#9

Please sign in to comment.