File tree Expand file tree Collapse file tree 4 files changed +85
-1
lines changed Expand file tree Collapse file tree 4 files changed +85
-1
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ steps :
14+ - uses : actions/checkout@v3
15+ with :
16+ fetch-depth : 0 # Changelog を正しく動作させるために必要
17+
18+ # Go をセットアップ
19+ - uses : actions/setup-go@v3
20+ with :
21+ go-version-file : go.mod
22+ cache : true
23+
24+ # リリース
25+ - uses : goreleaser/goreleaser-action@v4
26+ with :
27+ args : release --rm-dist
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ TAP_GITHUB_TOKEN : ${{ secrets.TAP_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2121go.work
2222
2323# Environment variables
24- .env
24+ .env
25+ dist /
Original file line number Diff line number Diff line change 1+ # This is an example .goreleaser.yml file with some sensible defaults.
2+ # Make sure to check the documentation at https://goreleaser.com
3+ before :
4+ hooks :
5+ # You may remove this if you don't use go modules.
6+ - go mod tidy
7+ # you may remove this if you don't need go generate
8+ - go generate ./...
9+ builds :
10+ - env :
11+ - CGO_ENABLED=0
12+ goos :
13+ - linux
14+ - windows
15+ - darwin
16+
17+ archives :
18+ - format : tar.gz
19+ # this name template makes the OS and Arch compatible with the results of uname.
20+ name_template : >-
21+ {{ .ProjectName }}_
22+ {{- title .Os }}_
23+ {{- if eq .Arch "amd64" }}x86_64
24+ {{- else if eq .Arch "386" }}i386
25+ {{- else }}{{ .Arch }}{{ end }}
26+ {{- if .Arm }}v{{ .Arm }}{{ end }}
27+ # use zip for windows archives
28+ format_overrides :
29+ - goos : windows
30+ format : zip
31+ checksum :
32+ name_template : ' checksums.txt'
33+ snapshot :
34+ name_template : " {{ incpatch .Version }}-next"
35+ changelog :
36+ sort : asc
37+ filters :
38+ exclude :
39+ - ' ^docs:'
40+ - ' ^test:'
41+
42+ brews :
43+ - repository :
44+ owner : cocoide
45+ name : homebrew-tap
46+ token : " {{ .Env.TAP_GITHUB_TOKEN }}"
47+
48+ # The lines beneath this are called `modelines`. See `:help modeline`
49+ # Feel free to remove those if you don't want/use them.
50+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
51+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
Original file line number Diff line number Diff line change @@ -14,13 +14,15 @@ require (
1414require (
1515 github.com/fsnotify/fsnotify v1.6.0 // indirect
1616 github.com/hashicorp/hcl v1.0.0 // indirect
17+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
1718 github.com/magiconair/properties v1.8.7 // indirect
1819 github.com/mattn/go-colorable v0.1.13 // indirect
1920 github.com/mitchellh/mapstructure v1.5.0 // indirect
2021 github.com/pelletier/go-toml/v2 v2.0.8 // indirect
2122 github.com/spf13/afero v1.9.5 // indirect
2223 github.com/spf13/cast v1.5.1 // indirect
2324 github.com/spf13/jwalterweatherman v1.1.0 // indirect
25+ github.com/spf13/pflag v1.0.5 // indirect
2426 github.com/subosito/gotenv v1.4.2 // indirect
2527 gopkg.in/ini.v1 v1.67.0 // indirect
2628 gopkg.in/yaml.v3 v3.0.1 // indirect
You can’t perform that action at this time.
0 commit comments