From 72c7d7934d1a3f7da547abb243f0615da51eedba Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 11 Aug 2024 20:32:40 +0200 Subject: [PATCH] Update to use trusted publishing (#342) --- .github/workflows/deploy.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1e66c9c4..2e57a5a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,16 +7,20 @@ on: jobs: deploy: runs-on: ubuntu-latest - + environment: + name: pypi + url: https://pypi.org/p/terracotta + permissions: + id-token: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # make sure tags are fetched so we can get a version - run: | git fetch --prune --unshallow --tags - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.x' @@ -31,6 +35,3 @@ jobs: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}