We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f766856 commit f5211f1Copy full SHA for f5211f1
1 file changed
.github/workflows/main.yml
@@ -0,0 +1,29 @@
1
+name: "Publish"
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "[0-9]+.[0-9]+.[0-9]+"
7
+ - "[0-9]+.[0-9]+.[0-9]+-[a-zA-Z0-9]+.[0-9]+"
8
+jobs:
9
+ run:
10
+ name: "Build and publish release"
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - uses: actions/checkout@v4
15
16
+ - name: Install uv
17
+ uses: astral-sh/setup-uv@v3
18
+ with:
19
+ enable-cache: true
20
+ cache-dependency-glob: uv.lock
21
22
+ - name: Set up Python
23
+ run: uv python install 3.12 # Or whatever version I want to use.
24
25
+ - name: Build
26
+ run: uv build
27
28
+ - name: Publish
29
+ run: uv publish -t ${{ secrets.PYPI_TOKEN }}
0 commit comments