(Manual) Deploy PyPi #3
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: (Manual) Deploy PyPi | |
on: workflow_dispatch | |
jobs: | |
deploy: | |
name: Build & deploy package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- name: Pypa build | |
run: | | |
python3 -m pip install build --user | |
- name: Wheel and source build | |
run: | | |
python3 -m build --sdist --wheel --outdir dist/ | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |