We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c885fc commit ce88c4fCopy full SHA for ce88c4f
.github/workflows/publish-to-pypi.yaml
@@ -0,0 +1,28 @@
1
+name: Publish Python distributions to PyPI
2
+on:
3
+ push:
4
+ tags:
5
+ - v[0-9]+.[0-9]+.[0-9]+
6
+jobs:
7
+ build-and-publish:
8
+ name: Build and publish Python distributions 📦 to PyPI
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write
12
+ contents: read
13
+ env:
14
+ UV_VERSION: "0.8.22"
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - name: Install uv
18
+ uses: astral-sh/setup-uv@v6
19
+ with:
20
+ version: ${{ env.UV_VERSION }}
21
+ enable-cache: true
22
+ - name: Install the dependencies
23
+ run: uv sync --locked --all-extras --dev
24
+ - uses: actions/setup-python@v4
25
+ - name: Build
26
+ run: uv build
27
+ - name: Publish
28
+ run: uv publish
0 commit comments