From 5761995648714ef7b13072b5ee974e2db6eb7e5e Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 9 Aug 2024 12:21:16 +0200 Subject: [PATCH] Update to use trusted publishing --- .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 }}