Skip to content

Commit f58540f

Browse files
committed
Use mod=readonly for release
1 parent d165f33 commit f58540f

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,10 @@ jobs:
4343
- name: Setup Tools
4444
run: ./scripts/setup
4545

46-
- name: Debug Environment
47-
run: |
48-
echo "github.workspace=${{ github.workspace }}"
49-
echo "Current directory: $(pwd)"
50-
echo "Protocol directory contents:"
51-
ls -la ../reduction-protocol
52-
ls -la ./
53-
5446
- name: Generate Code
55-
run: ./scripts/gen
47+
run: |
48+
./scripts/gen
49+
rm -rf vendor
5650
5751
- name: Run GoReleaser
5852
uses: goreleaser/goreleaser-action@v6

.goreleaser.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ version: 2
55

66
project_name: reduction
77

8-
before:
9-
hooks:
10-
- ./scripts/setup
11-
- ./scripts/gen
12-
- go mod tidy
13-
148
builds:
159
- main: ./cmd/reduction
1610
flags:
@@ -22,6 +16,9 @@ builds:
2216
- amd64
2317
- arm64
2418

19+
gomod:
20+
mod: readonly
21+
2522
archives:
2623
- formats: binary
2724

0 commit comments

Comments
 (0)