Skip to content

Build and upload to PyPI #8

Build and upload to PyPI

Build and upload to PyPI #8

Workflow file for this run

name: Build and upload to PyPI
on:
push:
tags: ['*']
jobs:
build_wheels:
name: Build on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
steps:
- uses: actions/checkout@v3
name: Checkout repository
- uses: pypa/[email protected]
name: Build wheels
with:
output-dir: dist
- uses: actions/upload-artifact@v3
name: Upload wheel artifacts
with:
path: dist/*.whl
upload_pypi:
name: Upload wheels to PyPI
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
name: Download wheel artifacts
with:
name: artifact
path: dist
- uses: pypa/[email protected]
name: Publish to PyPI
with:
password: ${{secrets.PYPI_TOKEN}}