Skip to content

modify release.yml - 10 #14

modify release.yml - 10

modify release.yml - 10 #14

Workflow file for this run

name: pypi-publish
on: push
jobs:
publish-to-pypi:

Check failure on line 6 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: 6, Col: 3): The workflow must contain at least one job with no dependencies.
name: Publish to PyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pymoog # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1