2021-09-06 14:48:32 +00:00
|
|
|
name: Publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- py-*
|
|
|
|
|
|
|
|
jobs:
|
2023-02-02 11:03:52 +00:00
|
|
|
All:
|
2021-09-06 14:48:32 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-02-02 11:03:52 +00:00
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2023-02-02 11:02:31 +00:00
|
|
|
python: ["3.8", "3.9", "3.10", "3.11"]
|
2021-09-06 14:48:32 +00:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
environment: "Publish wheels"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python }}
|
|
|
|
architecture: x64
|
|
|
|
- name: Publish
|
|
|
|
uses: messense/maturin-action@v1
|
|
|
|
with:
|
|
|
|
command: publish
|
|
|
|
args: -m instant-distance-py/Cargo.toml
|
|
|
|
--username __token__
|
|
|
|
--password ${{ secrets.PYPI_TOKEN }}
|
|
|
|
--interpreter python${{ matrix.python }}
|