Skip to content

Upload to PyPI

Upload to PyPI #18

Workflow file for this run

name: Upload to PyPI
on:
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: "Installs dependencies"
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: "Builds and uploads to PyPI"
run: |
python -m build
python -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}