blob: 1c95bcd65a9719724cebab9a99711e20427c20b1 [file] [log] [blame]
name: Upload to PyPI
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/setup-python@v4.6.1
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 }}