Skip to content

Bugfix

Bugfix #52

Workflow file for this run

name: release
on:
release:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build wheels
uses: PyO3/maturin-action@v1
with:
manylinux: auto
command: build
args: --release -o dist
- name: build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: -o dist
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
# windows:
# runs-on: windows-latest
# strategy:
# matrix:
# python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
# target: [x64, x86]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# architecture: ${{ matrix.target }}
# - name: Install Rust toolchain
# uses: dtolnay/rust-toolchain@stable
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: -i python --release --out dist
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist
# macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - uses: messense/maturin-action@v1
# with:
# command: build
# args: --release --no-sdist -o dist --universal2
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist
release:
name: Release
runs-on: ubuntu-latest
needs: [ linux ]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *