Skip to content

v0.1.1

v0.1.1 #4

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [created]
workflow_dispatch: # Allows manual triggering
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine wheel
pip install -e ".[dev]"
# - name: Run tests
# run: |
# pytest
- name: Build package
run: |
python -m build
- name: Check package
run: |
twine check dist/*
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true