Skip to content

Build and Publish Package to PyPI #1

Build and Publish Package to PyPI

Build and Publish Package to PyPI #1

Workflow file for this run

name: Build and Publish Package to PyPI
on:
release:
types: [published]
jobs:
publish:

Check failure on line 6 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Build and Publish Package to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 6, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
needs:
- ci
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set up Poetry
uses: abatilo/actions-poetry@v4
with:
poetry-version: "1.8.2"
- name: Add poetry dynamic versioning plugin
run: poetry self add poetry-dynamic-versioning
- name: Checkout repository
uses: actions/checkout@v4
- name: Build wheel and sdist
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1