Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- "**"
pull_request:
workflow_dispatch:
schedule:
- cron: '30 5 * * *'

concurrency:
group: wheels-${{ github.ref }}
Expand All @@ -29,7 +31,7 @@ jobs:
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
buildplat:
- [ubuntu-20.04, manylinux_x86_64]
- [ubuntu-20.04, manylinux_aarch64]
- [ubuntu-24.04-arm, manylinux_aarch64]
- [macos-14, macosx_*]
- [windows-2019, win_amd64]
python: ["cp39", "cp310", "cp311", "cp312", "cp313"]
Expand Down Expand Up @@ -59,12 +61,6 @@ jobs:
cache-dependency-path: 'bindings/python/pyproject.toml'
allow-prereleases: true

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Install pkg-config on MacOS
if: runner.os == 'macOS'
run: brew install pkg-config
Expand Down Expand Up @@ -152,7 +148,7 @@ jobs:
publish:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
needs: [collect_dist]
if: startsWith(github.ref, 'refs/tags/')
if: ${{ github.event_name != 'pull_request'}}
runs-on: ubuntu-latest
environment: release
permissions:
Expand All @@ -164,4 +160,10 @@ jobs:
name: all-dist-${{ github.run_id }}
path: dist/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
Loading