File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 3737 - uses : actions/setup-go@v3
3838 with :
3939 go-version : 1.18
40- - run : |
41- go install github.com/mitchellh/gox@latest
42- go install github.com/tcnksm/ghr@latest
4340 - uses : go-semantic-release/action@v1
44- id : semrel
4541 with :
46- github-token : ${{ secrets.GITHUB_TOKEN }}
47- ghr : true
48- - run : |
49- gox -parallel 4 -osarch="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 linux/arm windows/amd64" -ldflags="-extldflags '-static' -s -w -X github.com/go-semantic-release/condition-gitlab/pkg/condition.CIVERSION=${{steps.semrel.outputs.version}}" -output="bin/{{.Dir}}_v${{steps.semrel.outputs.version}}_{{.OS}}_{{.Arch}}" ./cmd/condition-gitlab/
50- cd bin/ && shasum -a 256 * > ./condition-gitlab_v${{steps.semrel.outputs.version}}_checksums.txt && cd -
51- if: steps.semrel.outputs.version != ''
52- env:
53- CGO_ENABLED: 0
54- - run : ghr $(cat .ghr) bin/
55- if : steps.semrel.outputs.version != ''
42+ hooks : goreleaser
5643 env :
5744 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ builds :
2+ - env :
3+ - CGO_ENABLED=0
4+ targets :
5+ - linux_amd64
6+ - linux_arm64
7+ - darwin_amd64
8+ - darwin_arm64
9+ - linux_arm
10+ - windows_amd64
11+ main : ./cmd/condition-gitlab/
12+ ldflags :
13+ - -extldflags '-static'
14+ - -s -w -X github.com/go-semantic-release/condition-gitlab/pkg/condition.CIVERSION={{.Version}}
15+
16+ archives :
17+ - format : binary
18+ name_template : ' {{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
19+
20+ checksum :
21+ name_template : ' {{ .ProjectName }}_v{{ .Version }}_checksums.txt'
You can’t perform that action at this time.
0 commit comments