Better release #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |