diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml new file mode 100644 index 0000000..567d3a4 --- /dev/null +++ b/.github/workflows/publish-pypi.yml @@ -0,0 +1,33 @@ +# Manual PyPI publish backfill for an already-created release tag. +name: Publish PyPI + +on: + workflow_dispatch: + inputs: + ref: + description: Git ref to build and publish + required: true + default: v0.2.0 + +permissions: + contents: read + id-token: write + +jobs: + publish: + runs-on: ubuntu-latest + environment: pypi + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + ref: ${{ inputs.ref }} + - name: Set up Python + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version: "3.12" + - name: Install build tools + run: pip install build + - name: Build + run: python -m build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 1446863..7cf64d3 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -59,4 +59,4 @@ jobs: - name: Build run: python -m build - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@76f52bc884231f62b54a752585ace28ca25210fc # v1.12.4 + uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4