We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4512b77 commit 2e58776Copy full SHA for 2e58776
.github/workflows/pypi-publish.yml
@@ -1,6 +1,8 @@
1
name: Build then Publish to PyPI
2
3
-on: [push]
+on:
4
+ release:
5
+ types: [published]
6
7
jobs:
8
build-packages:
@@ -26,3 +28,21 @@ jobs:
26
28
with:
27
29
name: python-package-distributions
30
path: dist/
31
+
32
+ publish:
33
+ name: Publish distributions to PyPI
34
+ needs: build-packages
35
+ runs-on: ubuntu-latest
36
+ environment:
37
+ name: pypi
38
+ url: https://pypi.org/p/msl-loadlib
39
+ permissions:
40
+ id-token: write # IMPORTANT: mandatory for trusted publishing
41
+ steps:
42
+ - name: Download the stored distributions
43
+ uses: actions/download-artifact@v6
44
+ with:
45
+ name: python-package-distributions
46
+ path: dist/
47
+ - name: Publish distributions to PyPI
48
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments