We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1a1036 commit 932bd10Copy full SHA for 932bd10
1 file changed
.github/workflows/main.yml
@@ -7,8 +7,7 @@ on:
7
# manually triggered
8
9
jobs:
10
- build:
11
-
+ test:
12
runs-on: ubuntu-latest
13
strategy:
14
matrix:
@@ -32,3 +31,34 @@ jobs:
32
31
uv venv
33
uv pip install ".[testing]"
34
.venv/bin/pytest tests
+
35
+ publish:
36
+ if: startsWith(github.ref, 'refs/tags/')
37
+ needs: test
38
+ runs-on: ubuntu-latest
39
+ environment: release
40
+ permissions:
41
+ id-token: write
42
43
+ steps:
44
+ - name: Checkout repository
45
+ uses: actions/checkout@v4
46
+ with:
47
+ fetch-depth: 0
48
49
+ - name: Set up Python
50
+ uses: actions/setup-python@v5
51
52
+ python-version: "3.11"
53
54
+ - name: Install hatch
55
+ run: pip install hatch
56
57
+ - name: Build package
58
+ run: hatch build
59
60
+ - name: Publish to PyPI
61
+ uses: pypa/gh-action-pypi-publish@release/v1
62
63
+ attestations: true
64
+ skip-existing: true
0 commit comments