From d413050511ddc43a028f9a082a77ec75ac55eba0 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Thu, 7 Sep 2023 14:29:27 +0200 Subject: [PATCH] update publish workflow (#79) --- .github/workflows/py-publish.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/py-publish.yaml b/.github/workflows/py-publish.yaml index d7ca822..587fcf8 100644 --- a/.github/workflows/py-publish.yaml +++ b/.github/workflows/py-publish.yaml @@ -19,6 +19,9 @@ jobs: deploy: runs-on: ubuntu-latest + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v3 @@ -34,5 +37,3 @@ jobs: run: python -m build - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }}