diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9804f7a..4f97a5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,6 +71,7 @@ jobs: release: name: Release + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest needs: [ build_dist, build_wheels_unix ] steps: @@ -80,7 +81,6 @@ jobs: path: dist - name: Release uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') with: body: "Release ${{ github.ref }}" files: | @@ -91,7 +91,6 @@ jobs: python-version: "3.13" - name: Upload to PyPI - if: startsWith(github.ref, 'refs/tags/') env: TWINE_USERNAME: ${{ secrets.PYPI_TOKEN_NAME }} TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}