Skip to content

Publish To PyPI

Publish To PyPI #3

name: Publish To PyPI
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build
run: python -m build
- name: Publish to PyPI
run: python -m twine upload dist/* -u__token__ -p${{ secrets.PYPI_TOKEN }} --verbose