diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fa778a..b3e0308 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,7 +129,6 @@ jobs: run: hatch build - name: Upload Python package artifacts if: > - github.ref_type == 'tag' && matrix.python-version == '3.12' && needs.setup.outputs.environment-name == 'PyPI' uses: actions/upload-artifact@v4 @@ -141,7 +140,7 @@ jobs: environment: name: ${{ needs.setup.outputs.environment-name }} url: ${{ needs.setup.outputs.environment-url }} - if: github.ref_type == 'tag' && needs.setup.outputs.environment-name == 'PyPI' + if: needs.setup.outputs.environment-name == 'PyPI' needs: [setup, ci] permissions: id-token: write @@ -154,6 +153,7 @@ jobs: name: fastenv-${{ github.ref_name }} path: dist - name: Publish Python package to PyPI + if: github.ref_type == 'tag' uses: pypa/gh-action-pypi-publish@release/v1.8 changelog: if: github.ref_type == 'tag'