Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.2 to 5.0.0. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4.6.2...v5.0.0) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
111 lines
3.0 KiB
YAML
111 lines
3.0 KiB
YAML
name: Update PyPi
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
linux:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
target: [x86_64, x86, aarch64]
|
|
steps:
|
|
- uses: actions/checkout@v5.0.0
|
|
- name: Build wheels
|
|
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
with:
|
|
target: ${{ matrix.target }}
|
|
args: --release --out dist
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
manylinux: auto
|
|
- name: Upload wheels
|
|
uses: actions/upload-artifact@v5.0.0
|
|
with:
|
|
name: wheels-linux-${{ matrix.target }}
|
|
path: dist
|
|
|
|
windows:
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
target: [x64, x86]
|
|
steps:
|
|
- uses: actions/checkout@v5.0.0
|
|
- name: Build wheels
|
|
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
with:
|
|
target: ${{ matrix.target }}
|
|
args: --release --out dist
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
- name: Upload wheels
|
|
uses: actions/upload-artifact@v5.0.0
|
|
with:
|
|
name: wheels-windows-${{ matrix.target }}
|
|
path: dist
|
|
|
|
macos:
|
|
runs-on: macos-latest
|
|
strategy:
|
|
matrix:
|
|
target: [x86_64, aarch64]
|
|
steps:
|
|
- uses: actions/checkout@v5.0.0
|
|
- name: Build wheels
|
|
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
with:
|
|
target: ${{ matrix.target }}
|
|
args: --release --out dist
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
- name: Upload wheels
|
|
uses: actions/upload-artifact@v5.0.0
|
|
with:
|
|
name: wheels-macos-${{ matrix.target }}
|
|
path: dist
|
|
|
|
sdist:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5.0.0
|
|
- name: Build sdist
|
|
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
with:
|
|
command: sdist
|
|
args: --out dist
|
|
- name: Upload sdist
|
|
uses: actions/upload-artifact@v5.0.0
|
|
with:
|
|
name: wheels-sdist
|
|
path: dist
|
|
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
needs: [linux, windows, macos, sdist]
|
|
permissions:
|
|
# Use to sign the release artifacts
|
|
id-token: write
|
|
# Used to upload release artifacts
|
|
contents: write
|
|
# Used to generate artifact attestation
|
|
attestations: write
|
|
steps:
|
|
- uses: actions/download-artifact@v6.0.0
|
|
|
|
- name: Generate artifact attestation
|
|
uses: actions/attest-build-provenance@v3.0.0
|
|
with:
|
|
subject-path: 'wheels-*/*'
|
|
|
|
- name: Publish to PyPI
|
|
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
env:
|
|
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
with:
|
|
command: upload
|
|
args: --non-interactive --skip-existing wheels-*/*
|