Skip to content

v0.9.2

v0.9.2 #6

Workflow file for this run

name: Publish Python Package
on:
release:
types: [created]
jobs:
build-n-publish:
name: Build and publish Python wheel to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel flit
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build a binary wheel and a source tarball
run: python -m flit build
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}