Skip to content

Commit 2f625a1

Browse files
authored
Merge pull request #106 from ocefpaf/fix_docs_publication
Run every PR but publish only when tags
2 parents 55754ac + 724fa66 commit 2f625a1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Build and Deploy docs
22

3-
on:
4-
pull_request:
5-
push:
6-
branches: [main]
3+
on: ["push", "pull_request"]
74

85
jobs:
96
run:
@@ -35,7 +32,7 @@ jobs:
3532
popd
3633
3734
- name: GitHub Pages action
38-
if: github.ref == 'refs/heads/main'
35+
if: ${{ github.event_name == 'release' }}
3936
uses: peaceiris/[email protected]
4037
with:
4138
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)