Skip to content

Publish to PyPI.org #11

Publish to PyPI.org

Publish to PyPI.org #11

Workflow file for this run

name: Publish to PyPI.org
on:
release:
types: [published]
workflow_dispatch:
jobs:
pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Build manylinux Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.7.1-manylinux2014_x86_64
with:
python-versions: 'cp310-cp310 cp311-cp311'
build-requirements: 'numpy'
- name: Remove non manylinux wheels
run: |
rm -rf dist/*-linux_*.whl
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}