Skip to content

Commit 0be16af

Browse files
committed
trigger pypi on release, not on tag push
1 parent 7512957 commit 0be16af

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
name: "Release"
1+
name: release
22

33
on:
4-
push:
5-
tags:
6-
# Publish on any tag starting with a `v`, e.g., v0.1.0
7-
- v*
4+
release:
5+
types: [ published ]
86

97
jobs:
10-
run:
8+
release_to_pypi:
9+
name: Release to PyPI
1110
runs-on: ubuntu-latest
1211
environment:
1312
name: pypi

0 commit comments

Comments
 (0)