From d33c5233deee89d96026617bad72e4d38a2b6366 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Mon, 19 Aug 2024 01:29:52 -0500 Subject: [PATCH] Sync with next --- .github/workflows/python-publish-release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish-release.yml b/.github/workflows/python-publish-release.yml index 0b6f70e4c8..ebf0a2a386 100644 --- a/.github/workflows/python-publish-release.yml +++ b/.github/workflows/python-publish-release.yml @@ -1,6 +1,6 @@ name: RELEASE BUILD - PyPI 📦 Distribution -on: [push, pull_request, workflow_dispatch] +on: [push, pull_request, release, workflow_dispatch] jobs: build_wheels: @@ -26,7 +26,7 @@ jobs: uses: pypa/cibuildwheel@v2.20.0 env: CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" - CIBW_ARCHS_LINUX: "x86_64 i686" # ppc64le s390x really slow + CIBW_ARCHS_LINUX: "x86_64 i686 aarch64" # ppc64le s390x really slow CIBW_ARCHS_WINDOWS: "AMD64" # ARM64 Seems ARM64 will rebuild amd64 wheel for unknow reason. CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*" CIBW_SKIP: "" @@ -69,12 +69,13 @@ jobs: publish: needs: [build_wheels] runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags') + if: github.event_name == 'release' && github.event.prerelease == false && github.event.action == 'published' permissions: id-token: write steps: - uses: actions/download-artifact@v4 with: + merge-multiple: true path: dist - name: Show downloaded artifacts