From 2aad8984d8ee70cfc48db6395fd6ac6e6898d729 Mon Sep 17 00:00:00 2001 From: crwen <1543720935@qq.com> Date: Thu, 21 Nov 2024 19:50:17 +0800 Subject: [PATCH] fix ci: wrong wheels path --- .github/workflows/python_release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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