We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab814de commit 2123b1aCopy full SHA for 2123b1a
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,29 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ environment: pypi
11
+ permissions:
12
+ id-token: write
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: '3.12'
21
22
+ - name: Install build dependencies
23
+ run: pip install build
24
25
+ - name: Build package
26
+ run: python -m build
27
28
+ - name: Publish to PyPI
29
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments