Skip to content

Workflow file for this run

name: Upload Python Package to PYPI
on:
release:
types: [published]
jobs:
test:
name: Running Tests
uses: ./.github/workflows/tests.yml
publish:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build and publish
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m build -w
twine upload -u __token__ dist/*