File tree Expand file tree Collapse file tree 3 files changed +32
-47
lines changed
Expand file tree Collapse file tree 3 files changed +32
-47
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,13 @@ jobs:
1616 uses : actions/setup-go@v4
1717 with :
1818 go-version : 1.17
19+ cache : true
1920
2021 - name : Run GoReleaser
2122 uses : goreleaser/goreleaser-action@v5
2223 with :
24+ distribution : goreleaser
2325 version : latest
2426 args : release --clean
25- workdir : cmd/rotateproxy
2627 env :
2728 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ before :
2+ hooks :
3+ - go mod tidy
14builds :
2- - skip : true
5+ - env : [CGO_ENABLED=0]
6+ goos :
7+ - linux
8+ - windows
9+ - darwin
10+ - freebsd
11+ goarch :
12+ - amd64
13+ - arm64
14+ dir : .
15+ main : ./cmd/rotateproxy
16+ flags :
17+ # trims path
18+ - -trimpath
19+ ldflags :
20+ # use commit date instead of current date as main.date
21+ # only needed if you actually use those things in your main package, otherwise can be ignored.
22+ - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
323checksum :
424 name_template : ' checksums.txt'
25+ changelog :
26+ sort : asc
27+ filters :
28+ exclude :
29+ - ' ^docs:'
30+ - ' ^test:'
531release :
6- # Same as for github
7- # Note: it can only be one: either github, gitlab or gitea
8- github :
9- owner : akkuman
10- name : rotateproxy
11-
12- draft : false
13-
14- # You can add extra pre-existing files to the release.
15- # The filename on the release will be the last part of the path (base). If
16- # another file with the same name exists, the latest one found will be used.
17- # Defaults to empty.
18- extra_files :
19- - glob : ./build/*
32+ name_template : ' v{{ .Version }}'
33+ archives :
34+ - format : zip
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments