diff --git a/.github/workflows/python_release.yml b/.github/workflows/python_release.yml index 9e917b5..2fc5832 100644 --- a/.github/workflows/python_release.yml +++ b/.github/workflows/python_release.yml @@ -2,11 +2,13 @@ name: Release Python on: push: - branches: - - main tags: - "*" pull_request: + branches: + - main + paths: + - ".github/workflows/python_release.yml" workflow_dispatch: permissions: @@ -72,7 +74,7 @@ jobs: name: Release environment: release runs-on: ubuntu-latest - # if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} needs: [windows, macos] permissions: # Use to sign the release artifacts @@ -86,9 +88,9 @@ jobs: - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: - subject-path: "bindings/python/wheels-*/*" + subject-path: "wheels-*/*" - name: Publish to PyPI - # if: "startsWith(github.ref, 'refs/tags/')" + if: "startsWith(github.ref, 'refs/tags/')" uses: PyO3/maturin-action@v1 with: command: upload