Skip to content

Commit 436afcc

Browse files
authored
Merge pull request #41 from has2k1/publish-docs-main
Only publish documentation from the main branch
2 parents 8df7ab4 + fcc92f2 commit 436afcc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
name: docs-html
3232
path: docs/_build/html/
3333
- name: publish docs
34+
if: github.ref_name == 'main' && github.ref_type == 'branch'
3435
uses: peaceiris/actions-gh-pages@v3
3536
with:
3637
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)