Skip to content

Commit

Permalink
ci: try to set rules for refs
Browse files Browse the repository at this point in the history
  • Loading branch information
vvssttkk committed Jul 11, 2022
1 parent b67053e commit 2b2ea64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ jobs:
poetry run jupyter-book build ./qmlcourse
- name: update publish dir to `web-page-master`
if: github.ref == 'ref/heads/master'
if: github.ref_name == 'master'
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./qmlcourse/_build/html/
publish_branch: web-page-master

- name: update publish dir to `web-page-stage`
if: github.ref != 'ref/heads/master'
if: github.ref_name != 'master'
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -96,7 +96,7 @@ jobs:
xelatex -interaction=nonstopmode qmlcourse.tex
- name: send pdf book to `web-page-master`
if: github.ref == 'ref/heads/master'
if: github.ref_name == 'master'
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -105,7 +105,7 @@ jobs:
publish_branch: web-page-master

- name: send pdf book to `web-page-stage`
if: github.ref != 'ref/heads/master'
if: github.ref_name != 'master'
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2b2ea64

Please sign in to comment.