From b63d6881fad685295184d70a0cfdbb8755c67d5c Mon Sep 17 00:00:00 2001 From: Raphael Krupinski Date: Sun, 27 Oct 2024 09:00:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Fix=20GHA=20release=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index f88c425..4b18e66 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -1,11 +1,14 @@ -# .github/workflows/publish-to-pypi.yml - name: Publish to PyPI on: release: types: - published + workflow_dispatch: + inputs: + tag_name: + required: true + description: Tag name jobs: publish_pypi: @@ -14,11 +17,16 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 + with: + ref: "refs/tags/${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name || github.event.release.tag_name }}" - name: Install uv uses: astral-sh/setup-uv@v3 with: enable-cache: true + - name: Build Package + run: uv build + - name: Publish Package - run: uv publish + run: uv publish --trusted-publishing always