Skip to content

Better release

Better release #3

Workflow file for this run

name: release-main
on:
release:
types: [published]
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: required for trusted publishing to PyPI
id-token: write
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0 # Let setuptools-scm work
- name: Set up the environment
uses: ./.github/actions/setup-python-env
- name: Build package
run: uvx --from build pyproject-build --installer uv
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1