37 lines
705 B
YAML
37 lines
705 B
YAML
name: Publish Go Bondings
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
Publish Go package action:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.22'
|
|
|
|
- name: Install protoc
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y protobuf-compiler
|
|
|
|
- name: Install Go Protobuf
|
|
run: /
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.1
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0
|
|
|
|
- name: Generate Go protobuf
|
|
run: bash ./srcipts/generate-go.sh
|
|
|
|
|
|
|
|
|
|
|