v2.0.3 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ReleaseCI | |
on: | |
release: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-n-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: [3.7] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: clippy | |
override: true | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: 'x64' | |
- name: Install Maturin | |
run: | | |
pip install . | |
pip install maturin twine wheel | |
- name: Rust - Build & Publish | |
env: | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
run: | | |
maturin build --release --out wheels | |
twine upload -u milesg --skip-existing wheels/* | |
- name: Python - Build & Publish | |
env: | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
run: | | |
python setup.py sdist | |
python setup.py bdist_wheel | |
twine upload -u milesg --skip-existing dist/* |