Skip to content

Commit 24e3164

Browse files
authored
fix: simplify release conditions in CI workflow (#2)
1 parent 43b7a39 commit 24e3164

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/cd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,24 @@ jobs:
6060
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
6161
git tag -a "${VERSION}" -m "Release ${VERSION}"
6262
git push origin "${VERSION}"
63-
if: ${{ env.PIPELINE_TAG == 'true' && env.RELEASE_MODE == 'true' }}
63+
if: ${{ env.RELEASE_MODE == 'true' }}
6464

6565
- name: Build package
6666
shell: bash
6767
run: uv build
68-
if: ${{ env.PIPELINE_TAG == 'true' && env.RELEASE_MODE == 'true' }}
68+
if: ${{ env.RELEASE_MODE == 'true' }}
6969

7070
- name: Upload package to artifact registry
7171
uses: actions/upload-artifact@v6
7272
with:
7373
name: uvtask
7474
path: dist/
75-
if: ${{ env.PIPELINE_TAG == 'true' && env.RELEASE_MODE == 'true' }}
75+
if: ${{ env.RELEASE_MODE == 'true' }}
7676

7777
- name: Publish package
7878
shell: bash
79-
run: uv publish
80-
if: ${{ env.PIPELINE_TAG == 'true' && env.RELEASE_MODE == 'true' }}
79+
run: uv publish --token "${{ secrets.UV_PUBLISH_TOKEN }}"
80+
if: ${{ env.RELEASE_MODE == 'true' }}
8181

8282
- name: Clean
8383
shell: bash

0 commit comments

Comments
 (0)