This commit is contained in:
2025-09-27 03:33:29 +00:00
parent cda334a45d
commit 78a7acbe3e
6 changed files with 188 additions and 0 deletions

36
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
ci:
uses: ./.github/workflows/ci.yaml
release:
needs: ci
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6.5.0
with:
enable-cache: true
- name: Install the project
run: uv sync --locked
- name: Build package
run: uv build
- name: Publish to registry
env:
UV_PUBLISH_URL: ${{ vars.UV_PUBLISH_URL }}
UV_PUBLISH_USERNAME: ${{ vars.UV_PUBLISH_USERNAME }}
UV_PUBLISH_PASSWORD: ${{ secrets.UV_PUBLISH_PASSWORD }}
run: uv publish