2 Commits

Author SHA1 Message Date
3bae8acc62 chore(release): 1.2.1 2021-04-14 20:13:01 +01:00
eaf738c49f fix(release): fix goreleaser setup 2021-04-14 20:12:23 +01:00
4 changed files with 38 additions and 30 deletions

View File

@@ -27,16 +27,8 @@ jobs:
working_directory: /go/src/github.com/jimeh/casecmp working_directory: /go/src/github.com/jimeh/casecmp
steps: steps:
- checkout - checkout
- run: - run: curl -sL https://git.io/goreleaser | bash
name: Install tools
command: |
go get github.com/goreleaser/goreleaser
- run:
name: Install dependencies
command: go mod download
- run:
name: Run goreleaser
command: goreleaser
workflows: workflows:
version: 2 version: 2
build: build:

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
bin/* bin/*
dist/* dist/*
releases/* releases/*
dist/

View File

@@ -1,10 +1,14 @@
project_name: casecmp before:
hooks:
- go mod tidy
builds: builds:
- main: main.go - env:
binary: casecmp
flags: -a
env:
- CGO_ENABLED=0 - CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }}"
goos: goos:
- darwin - darwin
- freebsd - freebsd
@@ -17,18 +21,29 @@ builds:
goarm: goarm:
- 6 - 6
- 7 - 7
archive:
name_template: '{{ .ProjectName }}-{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm archives:
}}v{{ .Arm }}{{ end }}' - format: tar.gz
format: tar.gz name_template: |-
{{ .ProjectName }}-{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
wrap_in_directory: true wrap_in_directory: true
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
before: replacements:
hooks: darwin: Darwin
- make clean linux: Linux
git: windows: Windows
short_hash: true 386: i386
amd64: x86_64
checksum:
name_template: "checksums.txt"
snapshot: snapshot:
name_template: snapshot-{{.Commit}} name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

View File

@@ -1 +1 @@
1.2.0 1.2.1