all repos

json2go @ bb3a1d4254c7089ba57ca4925f6d4ca183363932

convert json to go type annotations
2 files changed, 61 insertions(+), 0 deletions(-)
chore: setup goreleaser
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-11-27 15:00:41 +0200
Change ID: vlxvkkzmnlzpoozlmpvpwqnkxkvussly
Parent: 7dcc81f
A .github/workflows/goreleaser.yml

@@ -0,0 +1,28 @@

+name: goreleaser + +on: + pull_request: + push: + +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,33 @@

+# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 + +version: 2 + +builds: + - main: ./cmd/json2go + env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - windows + +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 }} + format_overrides: + - goos: windows + formats: [zip] + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:"