Skip to content

Commit dfb4ed5

Browse files
committed
Fix docs workflow
1 parent 4651dda commit dfb4ed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: MDBOOK_ROOT=https://dipdup.net/docs make docs
5252

5353
- name: Deploy to GH Pages (docs)
54-
if: startsWith(github.ref, 'refs/tags')
54+
if: startsWith(github.ref, 'refs/tags') && !contains(github.ref, '-rc')
5555
uses: peaceiris/actions-gh-pages@v3
5656
with:
5757
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -63,7 +63,7 @@ jobs:
6363
run: MDBOOK_ROOT=https://dipdup.net/docs-next make docs
6464

6565
- name: Deploy to GH Pages (docs-next)
66-
if: startsWith(github.ref, 'refs/heads')
66+
if: startsWith(github.ref, 'refs/heads') || contains(github.ref, '-rc')
6767
uses: peaceiris/actions-gh-pages@v3
6868
with:
6969
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)