Skip to content

Commit 8f9edc6

Browse files
committed
Run docs on every PR
to make sure they don't decay between releases
1 parent a70c501 commit 8f9edc6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Docs Deployment
22

33
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- develop
48
release:
59
types: [released]
610

@@ -20,10 +24,11 @@ jobs:
2024
run: npm run doc
2125
- name: Deploy
2226
uses: peaceiris/actions-gh-pages@v4
27+
if: github.event_name == 'release'
2328
with:
2429
github_token: ${{ secrets.RWT_BOT_PAT }}
2530
publish_dir: doc
2631
destination_dir: .
2732
enable_jekyll: false
28-
force_orphan: false # So we keep the doc history
33+
force_orphan: false # So we keep the doc history
2934
commit_message: JSDoc ${{ github.event.release.name }}

0 commit comments

Comments
 (0)