instant-segment/.github/workflows/publish.yml

58 lines
1.4 KiB
YAML
Raw Normal View History

2021-08-31 12:49:55 +00:00
name: Publish
on:
push:
2021-08-31 14:40:10 +00:00
tags:
- py-*
2021-08-31 12:49:55 +00:00
jobs:
2021-09-01 06:59:06 +00:00
Unix:
2021-08-31 12:49:55 +00:00
strategy:
matrix:
2021-09-01 06:59:06 +00:00
os: [ubuntu-latest, macos-latest]
2023-10-26 13:39:57 +00:00
python: [3.7, 3.8, 3.9, "3.10", "3.11"]
2021-08-31 12:49:55 +00:00
runs-on: ${{ matrix.os }}
environment: "Publish wheels"
steps:
- uses: actions/checkout@v2
2021-09-01 06:59:06 +00:00
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
2021-08-31 12:49:55 +00:00
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
2021-09-01 06:59:06 +00:00
- name: Publish
uses: messense/maturin-action@v1
with:
command: publish
args: -m instant-segment-py/Cargo.toml
--no-sdist
--username __token__
--password ${{ secrets.PYPI_TOKEN }}
--interpreter python${{ matrix.python }}
Windows:
runs-on: windows-latest
environment: "Publish wheels"
steps:
- uses: actions/checkout@v2
2021-08-31 12:49:55 +00:00
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
2021-09-01 06:59:06 +00:00
- name: Publish all versions
2021-08-31 12:49:55 +00:00
uses: messense/maturin-action@v1
with:
command: publish
args: -m instant-segment-py/Cargo.toml
--no-sdist
--username __token__
2021-09-01 06:59:06 +00:00
--password ${{ secrets.PYPI_TOKEN }}