We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3e9d82 commit 95313a7Copy full SHA for 95313a7
1 file changed
.github/workflows/release.yml
@@ -0,0 +1,33 @@
1
+name: Build Wheel and Release
2
+on:
3
+ push:
4
+ tags:
5
+ - v*
6
+
7
+jobs:
8
+ pypi-publish:
9
+ name: upload release to PyPI
10
+ runs-on: ubuntu-latest
11
+ # Specifying a GitHub environment is optional, but strongly encouraged
12
+ environment: release
13
+ permissions:
14
+ # IMPORTANT: this permission is mandatory for trusted publishing
15
+ id-token: write
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ with:
19
+ fetch-depth: 0
20
21
+ - uses: actions/setup-python@v4
22
+ name: Install Python
23
24
+ python-version: "3.11"
25
26
+ - name: Build wheels
27
+ run: |
28
+ git clean -fxd
29
+ pip install -U build twine wheel
30
+ python -m build --sdist --wheel
31
32
+ - name: Publish package distributions to PyPI
33
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments