Skip to content

Commit 363d697

Browse files
committed
fix: build workflow
1 parent 36188fc commit 363d697

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,27 @@ jobs:
1010
release:
1111
runs-on: ubuntu-20.04
1212
steps:
13-
- name: checkout code
13+
- name: Checkout Code
1414
uses: actions/checkout@v3
1515
with:
16-
submodules: 'true'
17-
- name: Setup go
16+
submodules: true
17+
18+
- name: Setup Go
1819
uses: actions/setup-go@v3
1920
with:
2021
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+
2229
- name: Run GoReleaser
23-
if: contains(github.ref, 'tags/v')
30+
if: startsWith(github.ref, 'refs/tags/v')
2431
uses: goreleaser/goreleaser-action@v6
2532
with:
2633
version: latest
2734
args: release --clean
2835
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

0 commit comments

Comments
 (0)