Skip to content

Commit 478a38a

Browse files
authored
Trigger publish job on release events (#431)
- Use the `release` event from Github in order to trigger the `publish` action
1 parent 5a5d207 commit 478a38a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/python.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- master
66
- develop
77
pull_request:
8+
release:
9+
types: [ released ]
810

911

1012
jobs:
@@ -83,7 +85,7 @@ jobs:
8385
needs:
8486
- linting
8587
- test-app
86-
if: startsWith(github.ref, 'refs/tags/')
88+
if: (github.event_name == 'release' && github.event.action == 'released')
8789
steps:
8890
- uses: actions/checkout@v3
8991
- name: Set up Python

0 commit comments

Comments
 (0)