File tree 1 file changed +38
-0
lines changed
1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : go-releaser
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@v4
19
+ with :
20
+ fetch-depth : 0
21
+ - run : git fetch --force --tags
22
+ - uses : actions/setup-go@v5
23
+ with :
24
+ go-version : " >=1.23"
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@v6
29
+ with :
30
+ # either 'goreleaser' (default) or 'goreleaser-pro':
31
+ distribution : goreleaser
32
+ version : latest
33
+ args : release --clean
34
+ env :
35
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
+ # Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
37
+ # distribution:
38
+ # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
You can’t perform that action at this time.
0 commit comments