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 c204a21 commit 84cfb42Copy full SHA for 84cfb42
.github/workflows/publish.yml
@@ -0,0 +1,37 @@
1
+name: Build and publish
2
+
3
+on:
4
+ workflow_dispatch: {}
5
+ push:
6
+ branches:
7
+ - main
8
9
+jobs:
10
+ build-and-publish:
11
+ name: Build and publish
12
+ runs-on: "ubuntu-24.04"
13
14
+ steps:
15
+ - uses: actions/checkout@v4
16
17
+ - uses: astral-sh/setup-uv@v5
18
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version-file: ".python-version"
22
23
+ - name: Setup venv
24
+ run: |
25
+ uv venv
26
+ uv sync --all-extras
27
28
+ - name: Build
29
30
+ uv build
31
32
+ - name: Publish
33
34
+ uv publish
35
+ env:
36
+ UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
37
0 commit comments