File tree 3 files changed +95
-0
lines changed
3 files changed +95
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ # run only against tags
6
+ tags :
7
+ - ' *'
8
+
9
+ permissions :
10
+ contents : write
11
+ # packages: write
12
+ # issues: write
13
+
14
+ jobs :
15
+ goreleaser :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ with :
20
+ fetch-depth : 0
21
+ - run : git fetch --force --tags
22
+ - uses : actions/setup-go@v3
23
+ with :
24
+ go-version : ' >=1.22.0'
25
+ cache : true
26
+ # More assembly might be required: Docker logins, GPG, etc. It all depends
27
+ # on your needs.
28
+ - uses : goreleaser/goreleaser-action@v4
29
+ with :
30
+ # either 'goreleaser' (default) or 'goreleaser-pro':
31
+ distribution : goreleaser
32
+ version : ${{ env.GITHUB_REF_NAME }}
33
+ args : release --clean -f ./cli/.goreleaser.yaml
34
+ env :
35
+ GITHUB_TOKEN : ${{ secrets.PUBLISHER_TOKEN }}
36
+ # Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
37
+ # distribution:
38
+ # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Original file line number Diff line number Diff line change
1
+
2
+ dist /
Original file line number Diff line number Diff line change
1
+ project_name : mozeidon-cli
2
+ monorepo :
3
+ tag_prefix : mozeidon-cli/
4
+ dir : cli
5
+ before :
6
+ hooks :
7
+ - go mod tidy
8
+ builds :
9
+ - env :
10
+ - CGO_ENABLED=0
11
+ goos :
12
+ - linux
13
+ - windows
14
+ - darwin
15
+ goarch :
16
+ - amd64
17
+ - arm64
18
+ flags :
19
+ - -tags=pro dev
20
+ archives :
21
+ - format : tar.gz
22
+ name_template : >-
23
+ {{ .ProjectName }}_
24
+ {{- title .Os }}_
25
+ {{- if eq .Arch "amd64" }}x86_64
26
+ {{- else if eq .Arch "386" }}i386
27
+ {{- else }}{{ .Arch }}{{ end }}
28
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
29
+ # use zip for windows archives
30
+ format_overrides :
31
+ - goos : windows
32
+ format : zip
33
+ checksum :
34
+ name_template : ' checksums.txt'
35
+ snapshot :
36
+ name_template : " {{ incpatch .Version }}-next"
37
+ changelog :
38
+ sort : asc
39
+ filters :
40
+ exclude :
41
+ - ' ^docs:'
42
+ - ' ^test:'
43
+ release :
44
+ prerelease : auto
45
+ universal_binaries :
46
+ - replace : true
47
+ brews :
48
+ -
49
+ name : mozeidon-cli
50
+ homepage : https://github.com/egovelox
51
+ tap :
52
+ owner : egovelox
53
+ name : homebrew-mozeidon
54
+ commit_author :
55
+ name : egovelox
You can’t perform that action at this time.
0 commit comments