Skip to content

Commit 6bf7276

Browse files
committed
Trigger release workflow on tag push
1 parent ba30a38 commit 6bf7276

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Release
33
# TODO: trigger this via Jenkins somehow?
44

55
on:
6+
push:
7+
tags: 'v[0-9]+.[0-9]+.[0-9]+*'
68
workflow_dispatch:
79
inputs:
810
publish-docs:
@@ -30,12 +32,12 @@ jobs:
3032
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3133
with:
3234
python-version: 3.11
33-
deploy-pages: ${{ inputs.publish-docs && !inputs.dry-run }}
35+
deploy-pages: ${{ github.event_name == 'push' || inputs.publish-docs && !inputs.dry-run }}
3436
release: true
3537

3638
publish-docs:
3739
needs: build-docs
38-
if: inputs.publish-docs && !inputs.dry-run
40+
if: github.event_name == 'push' || inputs.publish-docs && !inputs.dry-run
3941
runs-on: ubuntu-latest
4042
environment:
4143
name: pypi

0 commit comments

Comments
 (0)