[mirror] convert json to go types olexsmir.xyz/json2go

chore: setup goreleaser

Changed files
+61
.github
workflows
+28
.github/workflows/goreleaser.yml
··· 1 + name: goreleaser 2 + 3 + on: 4 + pull_request: 5 + push: 6 + 7 + permissions: 8 + contents: write 9 + 10 + jobs: 11 + goreleaser: 12 + runs-on: ubuntu-latest 13 + steps: 14 + - uses: actions/checkout@v5 15 + with: 16 + fetch-depth: 0 17 + 18 + - name: Set up Go 19 + uses: actions/setup-go@v5 20 + 21 + - name: Run GoReleaser 22 + uses: goreleaser/goreleaser-action@v6 23 + with: 24 + distribution: goreleaser 25 + version: '~> v2' 26 + args: release --clean 27 + env: 28 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+33
.goreleaser.yaml
··· 1 + # yaml-language-server: $schema=https://goreleaser.com/static/schema.json 2 + # vim: set ts=2 sw=2 tw=0 3 + 4 + version: 2 5 + 6 + builds: 7 + - main: ./cmd/json2go 8 + env: 9 + - CGO_ENABLED=0 10 + goos: 11 + - linux 12 + - darwin 13 + - windows 14 + 15 + archives: 16 + - formats: [tar.gz] 17 + name_template: >- 18 + {{ .ProjectName }}_ 19 + {{- title .Os }}_ 20 + {{- if eq .Arch "amd64" }}x86_64 21 + {{- else if eq .Arch "386" }}i386 22 + {{- else }}{{ .Arch }}{{ end }} 23 + {{- if .Arm }}v{{ .Arm }}{{ end }} 24 + format_overrides: 25 + - goos: windows 26 + formats: [zip] 27 + 28 + changelog: 29 + sort: asc 30 + filters: 31 + exclude: 32 + - "^docs:" 33 + - "^test:"