Skip to content

Commit

Permalink
Only deploy the guide when a new release is created (informalsystems#…
Browse files Browse the repository at this point in the history
  • Loading branch information
romac authored Apr 8, 2022
1 parent f70748d commit 97a0529
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
pull_request:
paths:
- guide/**
release:
types: [created]

jobs:
guide:
Expand Down Expand Up @@ -50,10 +52,10 @@ jobs:
cd guide
mdbook build
# Only deploy guide when pushing to master
# Only deploy guide when releasing a new version of Hermes
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
if: github.event_name == 'release' && github.event.action == 'created'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./guide/book

0 comments on commit 97a0529

Please sign in to comment.