File tree Expand file tree Collapse file tree 3 files changed +87
-0
lines changed
Expand file tree Collapse file tree 3 files changed +87
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : goreleaser
3+
4+ on :
5+ push :
6+ tags :
7+ - ' *'
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ goreleaser :
14+ runs-on : ubuntu-latest
15+ steps :
16+ -
17+ name : Checkout
18+ uses : actions/checkout@v2
19+ with :
20+ fetch-depth : 0
21+ -
22+ name : Set up Go
23+ uses : actions/setup-go@v2
24+ with :
25+ go-version : 1.16
26+ -
27+ name : Run GoReleaser
28+ uses : goreleaser/goreleaser-action@v2
29+ with :
30+ distribution : goreleaser
31+ version : latest
32+ args : release --rm-dist
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+
Original file line number Diff line number Diff line change 11build
2+ dist
23extracted *
Original file line number Diff line number Diff line change 1+ ---
2+ env :
3+ - GO111MODULE=on
4+ - CGO_ENABLED=0
5+
6+ before :
7+ hooks :
8+ - go mod download
9+
10+ builds :
11+ - id : bc-linux
12+ main : ./cmd/main.go
13+ binary : bc
14+ ldflags :
15+ - -X code.cloudfoundry.org/bosh-compile-action/pkg/version.Version={{.Version}} -X code.cloudfoundry.org/bosh-compile-action/pkg/version.Revision={{.ShortCommit}} -X code.cloudfoundry.org/bosh-compile-action/pkg/version.BuildDate={{.CommitDate}} -X code.cloudfoundry.org/bosh-compile-action/pkg/version.BuiltBy=goreleaser
16+ goos :
17+ - linux
18+ goarch :
19+ - amd64
20+ - arm64
21+ - s390x
22+ - ppc64le
23+
24+ - id : bc-darwin
25+ main : ./cmd/main.go
26+ binary : bc
27+ ldflags :
28+ - -X code.cloudfoundry.org/bosh-compile-action/pkg/version.Version={{.Version}} -X code.cloudfoundry.org/bosh-compile-action/pkg/version.Revision={{.ShortCommit}} -X code.cloudfoundry.org/bosh-compile-action/pkg/version.BuildDate={{.CommitDate}} -X code.cloudfoundry.org/bosh-compile-action/pkg/version.BuiltBy=goreleaser
29+ goos :
30+ - darwin
31+ goarch :
32+ - amd64
33+ - arm64
34+
35+ archives :
36+ - name_template : " {{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
37+ format_overrides :
38+ - goos : windows
39+ format : zip
40+
41+ checksum :
42+ name_template : " {{ .ProjectName }}-checksums.txt"
43+ algorithm : sha256
44+
45+ changelog :
46+ skip : false
47+
48+ release :
49+ draft : false
50+ prerelease : false
51+ name_template : " {{.Tag}}"
You can’t perform that action at this time.
0 commit comments