Refactor GoReleaser workflow: streamline dependency installation and update hooks
lemon-mint committed
Nov 19, 2025 at 23:00 UTC
5923d5c61289d94e07f0b2db1adba5bd09925d23
2 files changed
+14
-2
.github/workflows/release.yml
+13
@@ -24,6 +24,19 @@ jobs:
24
go-version: "stable"
25
check-latest: true
26
27
+ - name: Download dependencies
28
+ run: go mod download
29
+
30
+ - name: Install build dependencies
31
+ run: |
32
+ sudo apt-get update
33
+ sudo apt-get install -y protobuf-compiler binaryen
34
+
35
+ - name: Install protoc-gen-go and protoc-gen-go-vtproto
36
+ run: |
37
+ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
38
+ go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest
39
+
40
- name: Run GoReleaser
41
uses: goreleaser/goreleaser-action@v6
42
with:
.goreleaser.yaml
+1
-2
@@ -2,8 +2,7 @@ version: 2
2
3
before:
4
hooks:
5
- - apt-get update
6
- - apt-get install -y --no-install-recommends nodejs npm brotli make binaryen
5
+ - make clean
6
- make build
7
8
builds: