Skip to content

Commit d037f66

Browse files
authored
Merge pull request #96 from Sparks29032/update_docs_wf
Ensure evaluation
2 parents 24bb5d1 + 8c07bfb commit d037f66

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches:
66
- main
77
release:
8-
8+
9+
# Documentation built but not deployed for pull requests
910
pull_request:
1011
branches:
1112
- main
@@ -42,8 +43,10 @@ jobs:
4243
run: make -C doc/manual html
4344

4445
- name: Deploy
45-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
46-
uses: peaceiris/actions-gh-pages@v3
46+
# Documentation deployed only on pushes to main and releases
47+
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
48+
uses: peaceiris/actions-gh-pages@v4
4749
with:
4850
github_token: ${{ secrets.GITHUB_TOKEN }}
4951
publish_dir: ./doc/manual/build/html
52+

0 commit comments

Comments
 (0)