Deploy to PyPI #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy to PyPI" | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "Git tag to deploy to PyPI" | |
required: true | |
jobs: | |
deploy: | |
name: "Deploy to PyPI" | |
runs-on: ubuntu-latest | |
environment: Deploy | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.tag }} | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- shell: bash | |
run: | | |
python -m pip install --disable-pip-version-check -U pip | |
python -m pip install -U build twine | |
python -m build | |
python -m twine check dist/* | |
python -m twine upload --username=__token__ --password=${{ secrets.PYPI_TOKEN }} dist/* |