Skip to content

Commit fcc92f2

Browse files
committed
Only publish documentation from the main branch
ref: #39
1 parent dea8303 commit fcc92f2

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)