Skip to content

Commit 5fa28c3

Browse files
committed
Download go modules before going into goreleaser
Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent 9ba44e1 commit 5fa28c3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/goreleaser.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ jobs:
2525
with:
2626
go-version-file: go.mod
2727

28+
- name: Download go modules
29+
run: |
30+
echo "Downloading modules for go.mod"
31+
go mod download
32+
for gomod in **/go.mod; do
33+
echo "Downloading modules for $gomod"
34+
cd $(dirname $gomod)
35+
go mod download
36+
cd -
37+
done
38+
2839
- name: Delete non-semver tags
2940
run: 'git tag -d $(git tag -l | grep -v "^v")'
3041

0 commit comments

Comments
 (0)