From 0dc4cc59b1b44638b558e009198f916073ccaf35 Mon Sep 17 00:00:00 2001 From: Denis NA Date: Thu, 25 Dec 2025 02:35:56 +0100 Subject: [PATCH] fix: simplify release conditions in CI workflow --- .github/workflows/cd.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b8bb15b..8c751b1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -60,24 +60,24 @@ jobs: git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" git tag -a "${VERSION}" -m "Release ${VERSION}" git push origin "${VERSION}" - if: ${{ env.PIPELINE_TAG == 'true' && env.RELEASE_MODE == 'true' }} + if: ${{ env.RELEASE_MODE == 'true' }} - name: Build package shell: bash run: uv build - if: ${{ env.PIPELINE_TAG == 'true' && env.RELEASE_MODE == 'true' }} + if: ${{ env.RELEASE_MODE == 'true' }} - name: Upload package to artifact registry uses: actions/upload-artifact@v6 with: name: uvtask path: dist/ - if: ${{ env.PIPELINE_TAG == 'true' && env.RELEASE_MODE == 'true' }} + if: ${{ env.RELEASE_MODE == 'true' }} - name: Publish package shell: bash - run: uv publish - if: ${{ env.PIPELINE_TAG == 'true' && env.RELEASE_MODE == 'true' }} + run: uv publish --token "${{ secrets.UV_PUBLISH_TOKEN }}" + if: ${{ env.RELEASE_MODE == 'true' }} - name: Clean shell: bash