name: Python publish (failed targets only)
on:
workflow_dispatch:
inputs:
version:
description: "Package version to (re)publish (for reference only)"
required: false
default: ""
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
jobs:
pypi-manylinux-x86_64:
name: PyPI manylinux (x86_64) + sdist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build wheel (manylinux x86_64 + sdist)
uses: messense/maturin-action@v1
with:
target: x86_64-unknown-linux-gnu
command: build
args: --release --zig
manylinux: "2_17"
container: off
- name: Upload wheels to PyPI (manylinux x86_64 + sdist)
uses: pypa/gh-action-pypi-publish@v1.10.0
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: target/wheels
skip-existing: true
pypi-manylinux-aarch64:
name: PyPI manylinux (aarch64)
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- name: Build wheel (manylinux aarch64)
uses: messense/maturin-action@v1
with:
target: aarch64-unknown-linux-gnu
command: build
args: --release --no-sdist --zig
manylinux: "2_28"
container: off
- name: Upload wheels to PyPI (manylinux aarch64)
uses: pypa/gh-action-pypi-publish@v1.10.0
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: target/wheels
skip-existing: true