Debian Codegraph @

.github/workflows/upload-to-pypi.yml

raw
1 name: Upload to PyPI
2
3 on:
4 # Triggers the workflow when a release is created
5 release:
6 types: [released]
7 # Allows you to run this workflow manually from the Actions tab
8 workflow_dispatch:
9
10 jobs:
11 upload:
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v2
15 - uses: actions/setup-python@v2
16 with:
17 python-version: 3.12
18
19 - name: "Installs dependencies"
20 run: |
21 pip install -U uv
22 uv sync --group dev --group test
23 pip install -e .
24
25 - name: "Builds and uploads to PyPI"
26 run: |
27 uv build
28 uv publish
29
30 env:
31 UV_PUBLISH_TOKEN: ${{ secrets.TOKEN_PYPI }}