Skip to content

v1.2.6

v1.2.6 #10

Workflow file for this run

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