From 7a73d4f24cd7561cdcf5324305def3ae70b6760f Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Sat, 16 Dec 2023 17:34:48 -0800 Subject: [PATCH] Push tags to pypi --- .github/workflows/package.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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