Skip to content

Build & Release

Build & Release #10

Workflow file for this run

name: Pypi Publish
on:
release:
types:
- created
env:
PYTHON_VERSION: "3.10"
TWINE_USERNAME: __token__
jobs:
publish:

Check failure on line 14 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Pypi Publish

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install build twine
- name: Build and publish package
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m build .
twine upload dist/*