Skip to content

Commit

Permalink
Merge pull request #13 from tushushu/wip-publish
Browse files Browse the repository at this point in the history
publish
  • Loading branch information
tushushu authored Jul 23, 2022
2 parents 1764d5b + 69bfe40 commit c9e703e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "publish"

# Controls when the workflow will run
on:
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


jobs:
maturin:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
- name: Install Python packages
run: |
pip install -r ./requirements/common.txt
- name: Publish mmr3
env:
PYPI_PW: ${{ secrets.PYPI_PW }}
shell: bash
run: |
maturin publish -m mmr3/Cargo.toml -u tushushu -p $PYPI_PW -i python

0 comments on commit c9e703e

Please sign in to comment.