From 4e6a9b1d59f49c54dbeab1d323fc9f9afb97a9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Thu, 19 Sep 2024 15:01:53 +0200 Subject: [PATCH] make release.yml more consistent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2854f45..a7cc300 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,8 @@ on: concurrency: group: ${{ github.event_name }}_${{ github.ref_name }} permissions: - contents: write # IMPORTANT: mandatory for making GitHub Releases - id-token: write + contents: write # IMPORTANT: mandatory for making GitHub Releases + id-token: write # IMPORTANT: mandatory for OICD token jobs: # Build and verify wheels build: @@ -46,8 +46,9 @@ jobs: # Upload to Test PyPI on every tag release-test-pypi: needs: build - name: Publish PyPI TEST + name: Publish to test.pypi.org environment: release + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') runs-on: ubuntu-latest steps: - name: Download packages built @@ -63,7 +64,7 @@ jobs: # Upload to real PyPI on GitHub Releases. release-pypi: needs: build - name: Publish PyPI PROD + name: Publish to pypi.org environment: release if: github.event.action == 'published' runs-on: ubuntu-latest @@ -82,3 +83,5 @@ jobs: path: dist - name: Upload package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true