File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,27 @@ jobs:
10
10
release :
11
11
runs-on : ubuntu-20.04
12
12
steps :
13
- - name : checkout code
13
+ - name : Checkout Code
14
14
uses : actions/checkout@v3
15
15
with :
16
- submodules : ' true'
17
- - name : Setup go
16
+ submodules : true
17
+
18
+ - name : Setup Go
18
19
uses : actions/setup-go@v3
19
20
with :
20
21
go-version : ' 1.24'
21
- - run : git fetch --prune --unshallow
22
+
23
+ - name : Cleanup dist folder
24
+ run : rm -rf dist
25
+
26
+ - name : Fetch Tags
27
+ run : git fetch --tags --depth=1
28
+
22
29
- name : Run GoReleaser
23
- if : contains (github.ref, 'tags/v')
30
+ if : startsWith (github.ref, 'refs/ tags/v')
24
31
uses : goreleaser/goreleaser-action@v6
25
32
with :
26
33
version : latest
27
34
args : release --clean
28
35
env :
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
+ GITHUB_TOKEN : ${{ secrets.GH_PAT }}
You can’t perform that action at this time.
0 commit comments