Skip to content

Commit d367a7c

Browse files
authored
Merge pull request #19 from Sensirion/manual-py-docs-deploy
Allow manual python docs deploy
2 parents ecde802 + ed7e76b commit d367a7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python.build_deploy.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
on:
2+
workflow_dispatch:
23
push:
34
pull_request:
45
branches:
@@ -141,7 +142,7 @@ jobs:
141142
with:
142143
path: python-wrapper/docs/_build/html
143144
deploy_pages:
144-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
145+
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || github.event_name == 'workflow_dispatch'
145146
runs-on: "ubuntu-22.04"
146147
needs: build_pages
147148
permissions:
@@ -237,4 +238,4 @@ jobs:
237238
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
238239
# upload sigstore-produced signatures and certificates from dist
239240
run: |
240-
gh release upload '${{ github.ref_name }}' dist/*.sigstore.json --repo '${{ github.repository }}'
241+
gh release upload '${{ github.ref_name }}' dist/*.sigstore.json --repo '${{ github.repository }}'

0 commit comments

Comments
 (0)