Skip to content

Commit e634852

Browse files
committed
chore: quick update fix/releaser at 2025-12-09 20:00:23
1 parent 4670e83 commit e634852

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@ name: Lint & Test
22

33
on:
44
push:
5-
branches: [ master ]
5+
# branches: [ master ]
66
pull_request:
7-
branches: [ master ]
7+
# branches: [ master ]
88

99
jobs:
1010

1111
lint:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15+
- name: Create cache directories
16+
run: |
17+
mkdir -p ~/.cache/golangci-lint
18+
mkdir -p ~/.cache/go-build
19+
1520
- uses: actions/checkout@v4
16-
- name: Set up Go
17-
uses: actions/setup-go@v5
21+
- uses: actions/setup-go@v5
1822
with:
19-
go-version: 1.22
23+
go-version-file: 'go.mod'
2024

2125
- name: Go Lint Cache
2226
uses: actions/cache@v3

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,21 @@ jobs:
88
name: Release on GitHub
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Create cache directories
12+
run: |
13+
mkdir -p ~/.cache/golangci-lint
14+
mkdir -p ~/.cache/go-build
15+
1116
- name: Checkout
1217
uses: actions/checkout@v4
1318
- uses: actions/setup-go@v5
1419
with:
1520
go-version-file: 'go.mod'
21+
1622
- name: Run GoReleaser
1723
uses: goreleaser/goreleaser-action@v5
1824
with:
1925
version: latest
2026
args: release --clean
2127
env:
22-
GITHUB_TOKEN: ${{ secrets.TOKEN }}
28+
GITHUB_TOKEN: ${{ secrets.RELEASER_TOKEN }}

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
builds:
2-
- main: ./cmds/protoc-gen-go-errors/main.go
2+
- main: ./cmds/protoc-gen-go-errors2/main.go
33
id: protoc-gen-go-errors
44
binary: protoc-gen-go-errors
55
goos:
@@ -9,7 +9,7 @@ builds:
99
goarch:
1010
- amd64
1111
- arm64
12-
- main: ./cmds/protoc-gen-go-enum/main.go
12+
- main: ./cmds/protoc-gen-go-enum2/main.go
1313
id: protoc-gen-go-enum
1414
binary: protoc-gen-go-enum
1515
goos:

0 commit comments

Comments
 (0)