Skip to content

v0.4.0

v0.4.0 #8

Workflow file for this run

name: release
on:
release:
types: [published]
env:
UV_VERSION: "0.4.x"
jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
pypi:
runs-on: ubuntu-latest
needs: test
environment: release
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
version: ${{ env.UV_VERSION }}
- name: Build package
run: |
uv build
- name: Upload release assets to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.event.release.tag_name }} ./dist/*
- name: Publish to PyPI
run: |
uv publish