This commit is contained in:
31
.github/workflows/publish-go.yml
vendored
Normal file
31
.github/workflows/publish-go.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Publish Go Bindings
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish Job
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.23
|
||||
|
||||
- name: Install protoc
|
||||
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
|
||||
|
||||
- name: Install Go protobuf plugin
|
||||
run: /
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||
|
||||
- name: Generate Go Protobuf
|
||||
run: go run ./scripts/generate_go.sh
|
||||
Reference in New Issue
Block a user