Skip to content

Revert bytes event attribute #8

Revert bytes event attribute

Revert bytes event attribute #8

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
release:
name: Create Protobuf generated files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Yarn
run: npm install -g yarn
- name: Install TypeScript
run: npm install -g typescript
- name: Setup Protobuf compiler
uses: abelfodil/protoc-action@v1
with:
protoc-version: "21.6"
- name: Add Protobuf files
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1
go mod download
make generate
- name: Add proto and pb files to release
run: |
zip generated_proto_files.zip ./sf -r
zip generated_pb_go.zip ./pb -r
- name: Setup Graph Proto as Schema
run: |
mkdir repos && cd repos
git clone https://github.com/figment-networks/graph-proto-as-schema
cd graph-proto-as-schema
yarn install
tsc
mkdir output
node ./dist/index.js -o ./output -d ../../sf/cosmos/type/v1 --typescript_namespace cosmos
- name: Add ts files to release
working-directory: repos
run: |
zip ../generated_ts_files.zip ./graph-proto-as-schema/output -r
- name: Graph-ts
working-directory: repos
run: |
git clone --single-branch https://github.com/figment-networks/graph-ts
cp -r ./graph-proto-as-schema/output ./graph-ts/chain
- name: Create Release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
artifacts: "generated_*.zip"
allowUpdates: true