Skip to content

Build and publish

Build and publish #2

Workflow file for this run

name: Upload Python Package
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch: # Allow manual triggering
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Upgrade setuptools and install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
pip install build setuptools_scm Cython numpy
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}