Skip to content

Commit

Permalink
build(go): Update goreleaser config file
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan committed Jun 12, 2024
1 parent 07e22f1 commit c5b885e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
clients/go/
!clients/go/.goreleaser.yaml

clients/python/*
!clients/python/test/test_locales_api.py
Expand Down
28 changes: 19 additions & 9 deletions clients/go/.goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
# Make sure to check the documentation at http://goreleaser.com
# Make sure to check the documentation at https://goreleaser.com

version: 2

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- skip: true
archives:
- 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: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
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 }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
skip: true
disable: true
release:
github:
owner: phrase
Expand Down

0 comments on commit c5b885e

Please sign in to comment.