From 9687bbc71b8274799c0d1803cf40e68b4c08c407 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Nhan | Decentrio Date: Sat, 14 Dec 2024 00:25:53 +0700 Subject: [PATCH] chore(ci): Add CI to run `generate-genesis-template` after each build (#390) Co-authored-by: anhductn2001 --- .../workflows/generate_genesis_template.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/generate_genesis_template.yml diff --git a/.github/workflows/generate_genesis_template.yml b/.github/workflows/generate_genesis_template.yml new file mode 100644 index 0000000..392bcfc --- /dev/null +++ b/.github/workflows/generate_genesis_template.yml @@ -0,0 +1,26 @@ +name: Generate Genesis Template +on: ["push"] +jobs: + build: + runs-on: ubuntu-latest + name: Generate Genesis Template + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.23.1" + + - name: Install Dasel + run: | + curl -sSLf https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_amd64 -o /usr/local/bin/dasel + chmod +x /usr/local/bin/dasel + + - name: Generate genesis template mainnet + run: make generate-genesis env=mainnet + env: + BECH32_PREFIX: ethm + + - name: Generate genesis template testnet + run: make generate-genesis env=testnet + env: + BECH32_PREFIX: ethm \ No newline at end of file