From 1575f3ec8a68d19573556671b6a70d08553bd053 Mon Sep 17 00:00:00 2001 From: andreasxp <28830446+andreasxp@users.noreply.github.com> Date: Sun, 28 Apr 2024 14:24:38 +0300 Subject: [PATCH] Fix publish.yaml --- .github/workflows/publish.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e9566c9d..2ec87d23 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,3 +1,6 @@ +# See also: +# https://github.com/pypa/gh-action-pypi-publish +# https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/ name: Publish on: @@ -16,6 +19,8 @@ jobs: publish: name: Publish to ${{ options.repository }} runs-on: ubuntu-latest + environment: + name: publish-${{ options.repository }} permissions: id-token: write steps: @@ -36,5 +41,3 @@ jobs: echo "UPLOAD_URL=$URL" >> "$GITHUB_ENV" - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: $UPLOAD_URL