Building the distributions
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
One action: builds the SDist and wheel, runs a battery of metadata checks,
prints a nice summary, uploads an artifact named Packages.
DIY version: pipx run build, then actions/upload-artifact, plus
pipx run twine check dist/*.