all repos

mugit @ a4a66742a3aa3acd649b9dfdf18529429dfc7ffd

🐮 git server that your cow will love
2 files changed, 64 insertions(+), 0 deletions(-)
chore: setup goreleaser
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-02-05 23:41:51 +0200
Change ID: smuuqplupuztuxttrkmzkyknyoptwroo
Parent: 39dba84
A .github/workflows/goreleaser.yml

@@ -0,0 +1,30 @@

+name: goreleaser + +on: + push: + tags: + - "*" + +permissions: + contents: write + + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v5 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: '~> v2' + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
A .goreleaser.yaml

@@ -0,0 +1,34 @@

+# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 +version: 2 + +before: + hooks: + - go mod tidy + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - freebsd + - openbsd + goarch: + - amd64 + - arm64 + ldflags: + - -s -w + - -X 'main.Version={{.Version}}' + flags: + - -trimpath + +archives: + - formats: [tar.gz] + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }}