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 a9744c2 commit 7938bdcCopy full SHA for 7938bdc
.github/workflows/publish-pypi.yml
@@ -0,0 +1,36 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ workflow_dispatch:
8
9
+jobs:
10
+ deploy:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - uses: actions/checkout@v4
15
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: '3.11'
20
21
+ - name: Install uv
22
+ run: |
23
+ curl -LsSf https://astral.sh/uv/install.sh | sh
24
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
25
26
+ - name: Install dependencies
27
28
+ uv pip install --system build twine
29
30
+ - name: Build package
31
+ run: python -m build
32
33
+ - name: Publish to PyPI
34
+ uses: pypa/gh-action-pypi-publish@release/v1
35
36
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments