Skip to content

Commit de84f72

Browse files
have it build the docs on all branches, but only deploy on main
(note: that should only depoloy when doing a release, but baby steps)
1 parent 2b998cb commit de84f72

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/static_docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ concurrency:
66
cancel-in-progress: true
77

88
on:
9+
push
910
# Runs on pushes targeting the default branch
10-
push:
11-
branches: ["main"]
11+
# push:
12+
# branches: ["main"]
1213

1314
# Allows you to run this workflow manually from the Actions tab
1415
workflow_dispatch:
@@ -43,5 +44,6 @@ jobs:
4344
# Upload entire repository
4445
path: 'docs/build/html'
4546
- name: Deploy to GitHub Pages
47+
if: github.ref == 'refs/heads/main'
4648
id: deployment
4749
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)