blob: 0b4284151d5bc7ee8c3e803c02d5522ed29a9b7e [file] [log] [blame]
name: Upload to PyPI
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.0
with:
python-version: 3.x
- run: pip install build twine
- run: python -m build --wheel --sdist
- run: twine upload --skip-existing dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}