Debian Codegraph @

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

raw
1 name: release to pypi.org
2
3 "on":
4 push:
5 tags:
6 - "v[0-9]+.[0-9]+.[0-9]+"
7 workflow_dispatch:
8
9 jobs:
10 main:
11 runs-on: ubuntu-24.04
12 steps:
13 - name: check out source
14 uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
15 - name: install Nix
16 uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25
17 - name: build distributions
18 # This uv is the flake's, which is also the build backend: uv build uses its own
19 # built-in uv_build whenever that uv satisfies pyproject.toml's [build-system]
20 # requires, and only fetches uv_build from PyPI otherwise. Either way, that floor
21 # is what keeps a too-old backend from writing the wheel's RECORD (#406).
22 run: nix develop .#build --command uv build
23 - name: check distributions
24 run: nix develop .#build --command ./check_dist
25 - name: Publish
26 uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
27 with:
28 user: __token__
29 password: ${{ secrets.PYPI_API_TOKEN }}
30
31 permissions:
32 contents: read