Re-add tag trigger for PyPI release

This commit is contained in:
object-Object 2023-09-25 00:41:03 -04:00
parent ff9dc7921c
commit 476cd7ce05
2 changed files with 2 additions and 0 deletions

View file

@ -31,6 +31,7 @@ WIP.
- On GitHub, under `Settings > Environments`, create two new environments called `pypi` and `testpypi`.
- Follow these instructions for PyPI and TestPyPI: https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/
- TestPyPI is a duplicate of PyPI which can be used for testing package publishing without affecting the real index. The CI workflow includes a manual execution option to publish to TestPyPI.
- If you like to live dangerously, this step is optional - you can remove the `publish-testpypi` job and the `TestPyPI` release choice from your workflow without impacting the rest of the CI.
## Setup

View file

@ -61,6 +61,7 @@ jobs:
${{
github.event_name == 'workflow_dispatch' && inputs.release
|| startsWith(github.event.head_commit.message, '[Release]')
|| startsWith(github.ref, 'refs/tags')
}}
bump-version-segment: ${{ inputs.segment }}