Skip to content

Merge pull request #150 from WardDeb/np2 #31

Merge pull request #150 from WardDeb/np2

Merge pull request #150 from WardDeb/np2 #31

Workflow file for this run

name: pypi
on: [push]
jobs:
pypi:
name: upload to pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install build prerequisites
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
run: |
python -m pip install --upgrade twine build cibuildwheel numpy
- name: sdist
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
run: |
python -m build --sdist
- name: wheel
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
run: |
python -m cibuildwheel --output-dir wheelhouse
- name: upload
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
twine upload dist/*
twine upload wheelhouse/*