We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdeb7d4 commit 2b4795eCopy full SHA for 2b4795e
1 file changed
.github/workflows/release.yml
@@ -0,0 +1,32 @@
1
+name: Build Python module and publish to Pypi
2
+on:
3
+ workflow_dispatch:
4
+ push:
5
+ tags:
6
+ - "v*.*.*"
7
+
8
+jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ timeout-minutes: 10
12
+ environment: release
13
+ permissions:
14
+ # IMPORTANT: this permission is mandatory for trusted publishing
15
+ id-token: write
16
+ steps:
17
+ - uses: actions/checkout@v4
18
19
+ - name: Install Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: "3.11"
23
24
+ - name: Install Hatch
25
+ run: pip install hatch
26
27
+ - name: Build Python module
28
+ run: hatch build
29
30
+ - name: Publish package distributions to PyPI
31
+ # https://docs.pypi.org/trusted-publishers/using-a-publisher/
32
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments