diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44420e7..8373666 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,9 @@ name: Build a release with Goreleaser -on: - push: - tags: - - "v*" +on: push +# push: +# tags: +# - "v*" permissions: contents: write diff --git a/.goreleaser.yml b/.goreleaser.yml index 6ae4ba3..3e6d6f2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,8 +1,21 @@ version: 2 builds: - - id: default + - id: darwin_amd64 goos: - darwin + goarch: + - amd64 + # Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`. + ldflags: + - -s -w -X github.com/upvestco/httpsignature-proxy/cmd.version={{.Version}} -X github.com/upvestco/httpsignature-proxy/cmd.commit={{.Commit}} -X github.com/upvestco/httpsignature-proxy/cmd.date={{.Date}} -X github.com/upvestco/httpsignature-proxy/cmd.builtBy=goreleaser + env: + - CGO_ENABLED=1 + - GO111MODULE=on + - GOOS=linux + - GOARCH=amd64 + mod_timestamp: "{{ .CommitTimestamp }}" + - id: default + goos: - linux - windows goarch: @@ -12,7 +25,7 @@ builds: ldflags: - -s -w -X github.com/upvestco/httpsignature-proxy/cmd.version={{.Version}} -X github.com/upvestco/httpsignature-proxy/cmd.commit={{.Commit}} -X github.com/upvestco/httpsignature-proxy/cmd.date={{.Date}} -X github.com/upvestco/httpsignature-proxy/cmd.builtBy=goreleaser env: - - CGO_ENABLED=1 + - CGO_ENABLED=0 - GO111MODULE=on mod_timestamp: "{{ .CommitTimestamp }}" archives: