Skip to content

formatting in notebooks #346

formatting in notebooks

formatting in notebooks #346

Workflow file for this run

name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build

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

View workflow run for this annotation

GitHub Actions / Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

Invalid workflow file

The workflow is not valid. .github/workflows/pypi.yml (Line: 37, Col: 7): Job 'publish-to-pypi' depends on unknown job 'build'.
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pyhgf # 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@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1