Skip to content

Commit cf2a1f7

Browse files
authored
Update release.yml
publish on release
1 parent 16538f0 commit cf2a1f7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Build and Release on PyPI
22

3-
#on:
4-
# workflow_dispatch:
5-
# push:
6-
# tags:
7-
# - v*
3+
on:
4+
release:
5+
types: [published]
86

97
jobs:
108
build-release:
@@ -31,10 +29,9 @@ jobs:
3129
name: Upload release to PyPI
3230
runs-on: ubuntu-latest
3331
needs: build-release
34-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3532
environment:
3633
name: pypi
37-
url: https://pypi.org/p/clang
34+
url: https://pypi.org/p/ctypeslib2
3835
permissions:
3936
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
4037
steps:

0 commit comments

Comments
 (0)