Debian Codegraph @

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

raw
1 name: release to test.pypi.org
2
3 "on":
4 push:
5 tags:
6 # To publish a test release to test.pypi.org,
7 # create and push a tag as follows:
8 # git tag -a 0.21.3.rc1 -m "Tag 0.21.3.rc1 for release to test.pypi.org"
9 # git push --tags
10 # Go to https://github.com/jab/bidict/actions?query=workflow%3A%22Release+to+Test+PyPI%22
11 # and watch for a new run of this workflow to publish to test.pypi.org.
12 # IMPORTANT: Run the following to clean up after:
13 # git tag -d 0.21.3.rc1
14 # git push origin :0.21.3.rc1
15 - "[0-9]+.[0-9]+.[0-9]+.rc[0-9]+"
16 workflow_dispatch:
17
18 jobs:
19 main:
20 runs-on: ubuntu-24.04
21 steps:
22 - name: check out source
23 uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
24 - name: install Nix
25 uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25
26 - name: build distributions
27 # This uv is the flake's, which is also the build backend: uv build uses its own
28 # built-in uv_build whenever that uv satisfies pyproject.toml's [build-system]
29 # requires, and only fetches uv_build from PyPI otherwise. Either way, that floor
30 # is what keeps a too-old backend from writing the wheel's RECORD (#406).
31 run: nix develop .#build --command uv build
32 - name: check distributions
33 run: nix develop .#build --command ./check_dist
34 - name: Publish
35 uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
36 with:
37 user: __token__
38 password: ${{ secrets.TEST_PYPI_API_TOKEN }}
39 repository_url: https://test.pypi.org/legacy/
40 verbose: true
41
42 permissions:
43 contents: read