Skip to content

Commit 8fd13c3

Browse files
authored
ci: Update release process to use buf (#77)
Signed-off-by: Michael Beemer <[email protected]>
1 parent c265d05 commit 8fd13c3

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: release
22

33
on:
44
push:
5-
branches:
6-
- feature/workflows
7-
tags:
8-
- "v*.*.*"
5+
branches:
6+
- feature/workflows
7+
tags:
8+
- "v*.*.*"
99

1010
env:
1111
REGISTRY: ghcr.io
@@ -54,26 +54,21 @@ jobs:
5454
goreleaser:
5555
runs-on: ubuntu-latest
5656
steps:
57-
-
58-
name: Checkout
57+
- name: Checkout
5958
uses: actions/checkout@v3
6059
with:
6160
fetch-depth: 0
6261
submodules: true
63-
-
64-
name: Set up Go
62+
- name: Set up Go
6563
uses: actions/setup-go@v3
6664
with:
67-
go-version: '1.18.1'
68-
- name: Fetch Deps
69-
run: |
70-
export GOBIN=`go env GOPATH`/bin
71-
export PATH=${PATH}:$GOBIN
72-
go install github.com/deepmap/oapi-codegen/cmd/[email protected]
73-
cp schemas/json/flagd-definitions.json pkg/eval/flagd-definitions.json
74-
oapi-codegen --config=./config/open_api_gen_config.yml ./schemas/openapi/provider.yml
75-
-
76-
name: Run GoReleaser
65+
go-version: "1.18.1"
66+
67+
- uses: bufbuild/[email protected]
68+
with:
69+
version: "1.1.1"
70+
- run: make generate
71+
- name: Run GoReleaser
7772
uses: goreleaser/goreleaser-action@v3
7873
with:
7974
args: release --rm-dist

0 commit comments

Comments
 (0)