From 9bd44c1ece21827c50c315f5cc55a5a592ad6713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20G=C3=B3mez=20Mac=C3=ADas?= Date: Wed, 4 Dec 2024 10:19:05 +0100 Subject: [PATCH] chore: Migrate to trusted publishers --- .github/workflows/publishing.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publishing.yaml b/.github/workflows/publishing.yaml index b353317..d40afe5 100644 --- a/.github/workflows/publishing.yaml +++ b/.github/workflows/publishing.yaml @@ -5,8 +5,14 @@ on: types: [published] jobs: - deploy: + pypi-publish: + name: Upload release to PyPI runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/vt-py + permissions: + id-token: write steps: - uses: actions/checkout@v2 - name: Set up Python @@ -19,8 +25,5 @@ jobs: pip install build - name: Build package run: python -m build - - name: Publish package + - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}