We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84ac35a + 1b487a9 commit efab90cCopy full SHA for efab90c
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,34 @@
1
+# Publish to PyPI on GitHub release (Trusted Publisher / OIDC).
2
+
3
+name: Publish to PyPI
4
5
+on:
6
+ release:
7
+ types: [published]
8
9
+permissions:
10
+ contents: read
11
12
+jobs:
13
+ publish:
14
+ name: Upload release to PyPI
15
+ runs-on: ubuntu-latest
16
+ # environment: pypi
17
+ permissions:
18
+ id-token: write # Required for Trusted Publishing (OIDC)
19
+ steps:
20
+ - uses: actions/checkout@v4
21
22
+ - uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.10"
25
+ cache: "pip"
26
27
+ - name: Install build dependencies
28
+ run: python -m pip install -U build
29
30
+ - name: Build package
31
+ run: python -m build
32
33
+ - name: Publish package to PyPI
34
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments