From db1e8f70251637025ce80ab10291bc69090a6af4 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 19 Nov 2023 15:36:25 +0100 Subject: [PATCH] Use block height as version numbering --- .github/workflows/workflow.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 77ef0bb..ed7c836 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -42,6 +42,9 @@ jobs: run: yarn && yarn postinstall - name: Build WebUI run: yarn build + - name: Get current block + id: getBlockHeight + run: echo "blockHeight=$(curl -s https://mempool.space/api/blocks/tip/height)" >> $GITHUB_OUTPUT - name: gzip build for LittleFS run: find dist -type f ! -name ".*" -exec sh -c 'mkdir -p "build_gz/$(dirname "${1#dist/}")" && gzip -k "$1" -c > "build_gz/${1#dist/}".gz' _ {} \; - name: Create tarball @@ -59,7 +62,7 @@ jobs: with: tag: main commit: main - name: release-${{ steps.dateAndTime.outputs.dateAndTime }} + name: release-${{ steps.getBlockHeight.outputs.blockHeight }} artifacts: "littlefs.bin,webui.tgz" allowUpdates: true removeArtifacts: true