Skip to content

v0.0.23

v0.0.23 #25

Workflow file for this run

name: Publish Python Package to PyPI
on:
release:
types: [created] # Runs when a new GitHub release is created
workflow_dispatch: # Allows manual trigger
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish package to PyPI
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine upload --username __token__ --password $PYPI_API_TOKEN dist/*