From b04ebf55f4223e939d91e5b452b359a154f84997 Mon Sep 17 00:00:00 2001 From: Mendez Date: Fri, 8 Nov 2024 14:39:48 +0100 Subject: [PATCH] Fix pypi publish job --- .github/workflows/publish_release.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index f47b7e7..8825b0c 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -9,14 +9,24 @@ on: jobs: build_package: uses: ./.github/workflows/_build_package.yml - # publish_package: - # needs: - # - build_package - # uses: ./.github/workflows/_publish_package.yml # publish_package_test: # needs: # - build_package # uses: ./.github/workflows/_publish_package_test.yml + publish_package: + needs: + - build_package + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v4 + with: + name: artifact + path: dist + - uses: pypa/gh-action-pypi-publish@release/v1 + merge_into_release: uses: ./.github/workflows/_merge_into_release.yml secrets: