File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed
Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ name : goreleaser
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ permissions :
9+ contents : write
10+ packages : write
11+
12+ jobs :
13+ release :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - if : ${{ !startsWith(github.ref, 'refs/tags/v') }}
17+ run : echo "flags=--snapshot" >> $GITHUB_ENV
18+ - uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
21+ - uses : actions/setup-go@v3
22+ with :
23+ go-version : 1.21
24+ cache : true
25+ - name : GHCR Docker Login
26+ run : echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin
27+ - name : Set up Docker Buildx
28+ uses : docker/setup-buildx-action@v2
29+ - uses : goreleaser/goreleaser-action@v5
30+ with :
31+ distribution : goreleaser
32+ version : latest
33+ args : release --clean ${{ env.flags }}
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ version : 1
2+
3+ before :
4+ hooks :
5+ - go mod tidy
6+
7+ builds :
8+ - env :
9+ - CGO_ENABLED=0
10+ goos :
11+ - linux
12+ - windows
13+ - darwin
14+ goarch :
15+ - amd64
16+ - arm64
17+ goarm :
18+ - 7
19+ ignore :
20+ - goos : windows
21+ goarch : arm64
22+ main : ./cmd/geth
23+ binary : geth
24+
25+ archives :
26+ - format : tar.gz
27+ # This name template makes the OS and Arch compatible with the results of `uname`.
28+ name_template : >-
29+ {{ .ProjectName }}_
30+ {{- title .Os }}_
31+ {{- if eq .Arch "amd64" }}x86_64
32+ {{- else if eq .Arch "386" }}i386
33+ {{- else }}{{ .Arch }}{{ end }}
34+ {{- if .Arm }}v{{ .Arm }}{{ end }}
35+ # Use zip for windows archives.
36+ format_overrides :
37+ - goos : windows
38+ format : zip
39+
40+ changelog :
41+ sort : asc
42+ filters :
43+ exclude :
44+ - " ^docs:"
45+ - " ^test:"
You can’t perform that action at this time.
0 commit comments