diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index df15e33..8c519c0 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -26,4 +26,19 @@ jobs: with: repository-url: https://test.pypi.org/legacy/ - + publish-to-pypi: + name: Publish tagged versions to PyPi + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes + needs: [publish-to-testpypi] + environment: + name: pypi + url: https://pypi.org/p/tilekiln + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v4 + with: + name: Packages + path: dist + - uses: pypa/gh-action-pypi-publish@release/v1