Skip to content

Publish to PyPI

Publish to PyPI #24

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
jobs:
tests:
uses: ./.github/workflows/build-test.yml
docs:
uses: ./.github/workflows/publish-docs.yml
deploy:
needs: [tests, docs]
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 package
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}