v2.0.2 #3
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: Publish on PyPi | |
on: | |
release: | |
types: [ published ] | |
workflow_dispatch: | |
jobs: | |
publish: | |
if: "!github.event.release.prerelease" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
python3 -m pip install -U pip setuptools wheel twine | |
pip3 install . | |
- name: Building | |
run: make build | |
- name: Publishing | |
run: "python3 -m twine upload dist/* -u __token__ -p '${{ secrets.PYPI_TOKEN }}'" | |