Skip to content

Commit

Permalink
Sync with next
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Aug 19, 2024
1 parent 6ff8ed5 commit d33c523
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/python-publish-release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -26,7 +26,7 @@ jobs:
uses: pypa/[email protected]
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: ""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d33c523

Please sign in to comment.