Skip to content

migrate to uv and hatchling #24

migrate to uv and hatchling

migrate to uv and hatchling #24

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
goreleaser:
runs-on: ubuntu-latest
environment:
name: release
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pypi:
runs-on: ubuntu-latest
environment:
name: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- run: uv build
- run: uv publish