herald.go/.github/workflows/draft-release.yml

33 lines
1.1 KiB
YAML

# draft-release.yml
name: "draft-release"
on:
pull_request:
jobs:
draft-release:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2.1.3
with:
go-version: 1.16.5
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- run: |
sudo apt update && \
sudo apt upgrade && \
sudo apt-get install autoconf automake libtool curl make g++ unzip && \
cd /tmp && \
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.1/protobuf-all-3.17.1.tar.gz && \
tar xfzv protobuf-all-3.17.1.tar.gz && \
cd protobuf-3.17.1 && \
./autogen.sh && \
./configure && \
make && \
sudo make install && \
sudo ldconfig && \
cd
- run: pip install grpcio grpcio-tools github3.py
- run: go get github.com/golang/protobuf/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc
- run: python3 scripts/version.py current --confirm # creates a draft release