diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8c751b1..8ef8946 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -17,7 +17,6 @@ on: env: CD: ${{ vars.CONTINUOUS_DEPLOYMENT }} - DEPLOY_MODE: "true" VERSION: ${{ github.event.inputs.version != '' && github.event.inputs.version || 'None' }} jobs: @@ -60,24 +59,20 @@ 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.RELEASE_MODE == 'true' }} - name: Build package shell: bash run: uv build - if: ${{ env.RELEASE_MODE == 'true' }} - name: Upload package to artifact registry uses: actions/upload-artifact@v6 with: name: uvtask path: dist/ - if: ${{ env.RELEASE_MODE == 'true' }} - name: Publish package shell: bash run: uv publish --token "${{ secrets.UV_PUBLISH_TOKEN }}" - if: ${{ env.RELEASE_MODE == 'true' }} - name: Clean shell: bash