Skip to content

Switch to GH actions #4

Switch to GH actions

Switch to GH actions #4

Workflow file for this run

name: PYPI Publish
on:
pull_request:
push:
branches:
- "master"
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
deploy:

Check failure on line 12 in .github/workflows/pypi.yml

View workflow run for this annotation

GitHub Actions / PYPI Publish

Invalid workflow file

The workflow is not valid. .github/workflows/pypi.yml (Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs:
- pre-commit
# - tests TODO
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_token }}