From e2882bb20448894dcd755e29a5878c7484bbd5e4 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Mon, 17 Apr 2023 23:21:36 +0200 Subject: [PATCH] switch to deploy environment and configure for pypi oidc closes #10871 closes #10870 --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 252809946..05ae545c1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,8 +19,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 + environment: deploy permissions: contents: write + id-token: write # for pypi oidc publish steps: - uses: actions/checkout@v3 @@ -39,8 +41,6 @@ jobs: - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.pypi_token }} - name: Set up Python uses: actions/setup-python@v4