File tree Expand file tree Collapse file tree 2 files changed +62
-1
lines changed Expand file tree Collapse file tree 2 files changed +62
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
runs-on : ubuntu-latest
18
18
steps :
19
- - uses : googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
19
+ - name : Tag Release
20
+ id : release
21
+ uses : googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
20
22
with :
21
23
release-type : go
22
24
package-name : release-please-action
25
+
26
+ - name : Checkout Repository
27
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28
+ with :
29
+ fetch-depth : 0
30
+
31
+ - name : Setup Go
32
+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
33
+ with :
34
+ go-version : 1.22
35
+
36
+ - name : Upload Release Artifact
37
+ if : ${{ steps.release.outputs.releases_created }}
38
+ uses : goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
39
+ with :
40
+ version : latest
41
+ args : release --clean
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ TAG : ${{ steps.release.outputs.tag_name }}
Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ before :
4
+ hooks :
5
+ - go mod tidy
6
+
7
+ builds :
8
+ - env :
9
+ - CGO_ENABLED=0
10
+ goos :
11
+ - linux
12
+ - darwin
13
+ goarch :
14
+ - amd64
15
+ - arm64
16
+
17
+ main : ./cmd/substation
18
+ binary : substation
19
+
20
+ release :
21
+ mode : keep-existing # required for compatibility with release-please
22
+
23
+ archives :
24
+ - format : tar.gz
25
+ # this name template makes the OS and Arch compatible with the results of `uname`.
26
+ name_template : >-
27
+ {{ .ProjectName }}_
28
+ {{- .Os }}_
29
+ {{- if eq .Arch "amd64" }}x86_64
30
+ {{- else if eq .Arch "386" }}i386
31
+ {{- else }}{{ .Arch }}{{ end }}
32
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
33
+
34
+ changelog :
35
+ sort : asc
36
+ filters :
37
+ exclude :
38
+ - " ^docs:"
39
+ - " ^test:"
You can’t perform that action at this time.
0 commit comments