We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72b1007 commit 9edc062Copy full SHA for 9edc062
.github/workflows/publish_pypi.yml
@@ -0,0 +1,26 @@
1
+# The cibuildwheel action triggers on creation of a release, this
2
+# triggers on publication.
3
+# The expected workflow is to create a draft release and let the wheels
4
+# upload, and then hit 'publish', which uploads to PyPi.
5
+
6
+on:
7
+ release:
8
+ types:
9
+ - published
10
+upload_pypi:
11
+ needs: [build_wheels, build_sdist]
12
+ runs-on: ubuntu-latest
13
+ environment:
14
+ name: pypi
15
+ url: https://pypi.org/p/cymem
16
+ permissions:
17
+ id-token: write
18
+ if: github.event_name == 'release' && github.event.action == 'published'
19
+ steps:
20
+ - uses: actions/download-artifact@v4
21
+ with:
22
+ # unpacks all CIBW artifacts into dist/
23
+ pattern: cibw-*
24
+ path: dist
25
+ merge-multiple: true
26
+ - uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments