chore: add release.yaml

This commit is contained in:
2025-08-15 17:47:56 +03:00
committed by GitHub
parent 548a4f7c8c
commit e2fcb61ddb

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

@@ -0,0 +1,32 @@
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}