Skip to content

Commit

Permalink
Create publish-wheel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 authored Nov 1, 2022
1 parent 00aa0d4 commit 6d760ec
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/publish-wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

on:
release:
types: [published]

jobs:
manylinux-wheel:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Use maturin to build manylinux wheel
run: |
docker run --rm -v ${PWD}:/io ghcr.io/pyo3/maturin build --release --out ./dist
pip install twine
twine upload --skip-existing -u __token__ -p "${{ secrets.PYPI_API_TOKEN }}" dist/*
windows-wheel:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Publish package
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build
pip install twine
twine upload --skip-existing -u __token__ -p "${{ secrets.PYPI_API_TOKEN }}" dist/*
os-x-wheel:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Publish package
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build
pip install twine
twine upload --skip-existing -u __token__ -p "${{ secrets.PYPI_API_TOKEN }}" dist/*

0 comments on commit 6d760ec

Please sign in to comment.