From 72b3d8c857e84f4a7e5611ff1da6022def169072 Mon Sep 17 00:00:00 2001 From: artcom Date: Mon, 13 Jul 2026 15:21:33 +0300 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 65df3d5..3ad3f6a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,15 +9,11 @@ permissions: jobs: - publish: - name: Publish package + build: + name: Build package runs-on: ubuntu-latest - - permissions: - id-token: write - - environment: - name: pypi + outputs: + artifact-id: ${{ steps.artifact-upload-step.outputs.artifact-id }} steps: - name: Checkout @@ -37,5 +33,31 @@ jobs: - name: Build run: uv build + - name: Upload artifacts + id: artifact-upload-step + uses: actions/upload-artifact@v7 + with: + path: dist/ + if-no-files-found: error + + publish: + name: Publish package + runs-on: ubuntu-latest + needs: [build] + + permissions: + id-token: write + + environment: + name: pypi + + steps: + + - name: Downdload artifacts + uses: actions/download-artifact@v8 + with: + artifact-ids: ${{ needs.build.outputs.artifact-id }} + path: dist/ + - name: Publish - run: uv publish + uses: pypa/gh-action-pypi-publish@release/v1