Publish to PyPi #4
This file contains hidden or 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: Publish to PyPi | |
on: | |
workflow_dispatch: | |
jobs: | |
upload: | |
name: Upload Package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install Build Dependencies | |
run: python -m pip install build twine | |
- name: Build | |
run: python -m build | |
- name: Publish to PyPI | |
run: | | |
python -m twine upload ./dist/* \ | |
--username __token__ \ | |
--password ${{ secrets.PYPI_API_TOKEN }} |