Skip to content

Commit d4c76a2

Browse files
Trigger publish on tag
1 parent 35b34e7 commit d4c76a2

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
name: Publish
1+
name: Publish to pypi
22
on:
3-
workflow_run:
4-
workflows: ["Unit Tests"]
5-
types: [completed]
3+
push:
4+
tags:
5+
- v[0-9]+.[0-9]+.[0-9]+
66

77
jobs:
8-
on-success:
8+
publish:
99
runs-on: ubuntu-latest
1010
environment:
1111
name: Publish
12-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1312
timeout-minutes: 10
1413
permissions:
1514
id-token: write
@@ -27,9 +26,3 @@ jobs:
2726

2827
- name: Publish
2928
run: uv publish
30-
31-
on-failure:
32-
runs-on: ubuntu-latest
33-
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
34-
steps:
35-
- run: echo "First workflow was a failure"

0 commit comments

Comments
 (0)