Skip to content

Workflow file for this run

name: Publish to PyPI
on:
workflow_dispatch: # Enable manual runs
tag:
- 'v*' # Run on version tags
jobs:
# Run the tests before publishing to PyPI
call_tests:
uses: ./.github/workflows/tests.yml
publish_to_pypi:
runs-on: ubuntu-latest
needs: call_tests
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
run: |
pip install poetry
- name: Install Dependencies
run: |
poetry install
- name: Build and Publish Package
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish --build