30 lines
656 B
YAML
30 lines
656 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
pypi:
|
|
name: Publish to PyPI
|
|
runs-on: ubuntu-latest
|
|
# Environment and permissions trusted publishing.
|
|
environment:
|
|
# Create this environment in the GitHub repository under Settings -> Environments
|
|
name: pypi
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v6
|
|
- name: Install Python 3.11
|
|
run: uv python install 3.11
|
|
- name: Build
|
|
run: uv build
|
|
- name: Publish
|
|
run: uv publish --index testpypi
|