File tree Expand file tree Collapse file tree 2 files changed +90
-0
lines changed
Expand file tree Collapse file tree 2 files changed +90
-0
lines changed Original file line number Diff line number Diff line change 1+ name : GoReleaser
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ goreleaser :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0
19+
20+ - name : Set up Go
21+ uses : actions/setup-go@v5
22+
23+ - name : Run GoReleaser
24+ uses : goreleaser/goreleaser-action@v6
25+ with :
26+ distribution : goreleaser
27+ version : ' latest'
28+ args : release --clean
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ TAP_GITHUB_TOKEN : ${{ secrets.TAP_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
3+
4+ version : 2
5+
6+ before :
7+ hooks :
8+ - go mod tidy
9+
10+ builds :
11+ - main : .
12+ binary : mysqldumpsplit
13+ ldflags : -s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .Date }}
14+ goos :
15+ - linux
16+ - darwin
17+ - windows
18+ goarch :
19+ - amd64
20+ - arm
21+ - arm64
22+
23+ archives :
24+ - formats : [ tar.gz ]
25+ # this name template makes the OS and Arch compatible with the results of `uname`.
26+ name_template : >-
27+ {{ .ProjectName }}_
28+ {{- title .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+ # use zip for windows archives
34+ format_overrides :
35+ - goos : windows
36+ formats : [ zip ]
37+
38+ changelog :
39+ sort : asc
40+ filters :
41+ exclude :
42+ - " ^docs:"
43+ - " ^test:"
44+
45+ release :
46+ name_template : ' {{ .Tag }}'
47+ github :
48+ owner : afrase
49+ name : mysqldumpsplit
50+
51+ brews :
52+ - name : mysqldumpsplit
53+ description : " Split a mysqldump into separate files for each table."
54+ repository :
55+ owner : afrase
56+ name : homebrew-tap
57+ token : " {{ .Env.TAP_GITHUB_TOKEN }}"
58+ test : |
59+ system "#{bin}/mysqldumpsplit -version"
You can’t perform that action at this time.
0 commit comments