Skip to content

chore(release): v0.3.0 #5

chore(release): v0.3.0

chore(release): v0.3.0 #5

Workflow file for this run

# .github/workflows/release.yml
name: release
on:
push: { tags: ["v*"] }
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv sync --dev
- run: uv run ruff check .
- run: uv run ruff format --check .
- run: uv run ty check
- run: uv run pytest -v
- run: uv build
- run: uvx twine check dist/*
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish-pypi:
needs: build
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write # OIDC: PyPI Trusted Publishing
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true # idempotent: 0.1.0 files already on PyPI survive tag moves