Skip to content

fix #11

fix #11 #35

Workflow file for this run

name: Deploy to PyPI
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools build twine wheel
- name: Build package
run: |
python -m build
- name: Check package
run: |
twine check dist/*
- name: Publish package to PyPI
if: github.ref == 'refs/heads/main'
run: |
twine upload --skip-existing dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}