From a1de8614dc3ebb49399bb4e3fbb053ecebb42632 Mon Sep 17 00:00:00 2001 From: Lukas Koch Date: Fri, 18 Oct 2024 13:35:08 +0200 Subject: [PATCH] Fix environment for publish. --- .github/workflows/pythonpublish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index b81aba6..e8ae9e0 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -13,11 +13,6 @@ jobs: dist: runs-on: ubuntu-latest - environment: release - permissions: - # IMPORTANT: this permission is mandatory for trusted publishing - id-token: write - steps: - uses: actions/checkout@v4 @@ -37,6 +32,11 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: - uses: actions/download-artifact@v4 with: