Skip to content

Publish

Publish #17

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
build:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: PyO3/maturin-action@v1
with:
manylinux: auto
command: build
args: --release -o dist -i 3.7
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
upload:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ build ]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Upload to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *