Skip to content

modify release.yml - 9 #13

modify release.yml - 9

modify release.yml - 9 #13

Workflow file for this run

name: pypi-publish
on: push
jobs:
# build:
# name: Build distribution
# runs-on: ubuntu-latest
# steps:
# # retrieve your distributions here
# - uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.x"
# - name: Install required packages
# run: pip install setuptools zenodo_get
# - name: Build a source tarball
# run: python3 setup.py sdist
# - name: Upload all the dists
# uses: actions/upload-artifact@v4
# with:
# name: python-package-distributions
# path: dist/
publish-to-pypi:

Check failure on line 26 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: 26, 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