Skip to content

Commit

Permalink
Merge pull request #11 from arokem/gh-only-on-pr-close
Browse files Browse the repository at this point in the history
Trying this again
  • Loading branch information
arokem authored May 16, 2024
2 parents 3caf7d8 + 7e3e37e commit 34bae6b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ jobs:
with:
# To install LaTeX to build PDF book
tinytex: true
- name: Publish to GitHub Pages (and render)
if: github.event.pull_request.merged == true

- name: Render Quarto
uses: quarto-dev/quarto-actions/render@v2

- name: Publish to GitHub Pages
if: github.event_name != 'pull_request'
uses: quarto-dev/quarto-actions/publish@v2
with:
render: false
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 34bae6b

Please sign in to comment.