Skip to content

Commit

Permalink
Publish to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
cswinter committed Mar 31, 2024
1 parent 4cfbda2 commit 4112f9c
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,59 @@ jobs:
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}

publish-python:
name: Publish Python for ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-musl
- x86_64-apple-darwin
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- aarch64-pc-windows-msvc
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: i686-pc-windows-msvc
os: windows-latest
- target: aarch64-pc-windows-msvc
os: windows-latest

runs-on: ${{ matrix.os }}
environment: PyPI
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
- uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/setup-python@v2
with:
python-version: 3.10
- uses: actions/setup-python@v2
with:
python-version: 3.11
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Publish
uses: messense/maturin-action@v1
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
with:
maturin-version: latest
command: publish
args: --username=__token__ --skip-existing --features=python --find-interpreter

0 comments on commit 4112f9c

Please sign in to comment.