Skip to content

Commit

Permalink
deploy page only on push
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn111 committed Dec 25, 2023
1 parent ec0e3d7 commit 5ae9635
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
- mdbook
pull_request:
pull_request:

jobs:
deploy:
Expand All @@ -24,6 +24,7 @@ jobs:
- run: mdbook build

- name: Deploy
if: ${{ github.event_name == 'push' }}
uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
with:
Expand Down

0 comments on commit 5ae9635

Please sign in to comment.