-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.45 KB
/
build-and-release-kerleano.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Genesis for kerleano
on:
push:
tags:
- v*
paths:
- "pocr-network/genesis/kerleano-conf.json"
- "sc-carbon-footprint/**/*"
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:16.8
steps:
- uses: actions/checkout@v3
- name: install solc
run: |
apt-get update && apt-get install gettext jq -y && \
# curl -L -o solc-file https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/solc-linux-amd64-latest && \
curl -L -o solc-file https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/list.txt && \
curl -o solc -L https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/$(grep v0.8.17 solc-file) && \
chmod +x solc && mv solc /bin/solc
- name: build Governance smartcontracts
run: |
cd sc-carbon-footprint/ && npm install -g solc && npm ci && ./build.sh && \
export GIT_HEAD_HASH=$(git rev-parse HEAD) && \
node prepare-genesis.js ../pocr-network/genesis/kerleano-conf.json > kerleano.final.json
- name: publish genesis kerleano.json
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sc-carbon-footprint/kerleano.final.json
asset_name: kerleano.json
tag: ${{ github.ref }}
overwrite: true
body: "Release kerleano.json with latest Goverance smartcontracts"