Skip to content

Commit a81263e

Browse files
committed
ci: Trigger PyPI publish on tag push instead of workflow_run
workflow_run runs the default-branch workflow against the default branch, so a release-branch point release publishes the wrong source. Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
1 parent 38f595b commit a81263e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ name: Publish PyPI
88

99
on:
1010
workflow_dispatch:
11-
workflow_run:
12-
workflows: ["Create Release"]
13-
types: [completed]
11+
push:
12+
# Sequence of patterns matched against refs/tags
13+
tags:
14+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
1415

1516
jobs:
1617
build_wheels:

0 commit comments

Comments
 (0)