Skip to content

Commit

Permalink
#4 Fix github action deploy job policy
Browse files Browse the repository at this point in the history
  • Loading branch information
raeperd committed Jan 8, 2022
1 parent 5ace6ca commit 779b2e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: github pages

on:
push:
branches:
- main
on: push

jobs:
deploy:
Expand Down Expand Up @@ -31,6 +28,7 @@ jobs:
npm run export
touch ./out/.nojekyll
- uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
Expand Down

0 comments on commit 779b2e5

Please sign in to comment.