From 07452ad8abf08d26cd0f23bd300c8f4b4274e5cf Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 23 Mar 2023 19:13:47 +0100 Subject: [PATCH] chore: automatically update sdk-testsuite app version --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 61ab4c6..af18b51 100644 --- a/Makefile +++ b/Makefile @@ -59,13 +59,14 @@ pkg/sdk/client/dist/client.js: tools/esbuild/bin/esbuild node_modules node_modules: npm ci -gitea-release: tools/gitea-release/bin/gitea-release.sh build +gitea-release: tools/yq/bin/yq tools/gitea-release/bin/gitea-release.sh build mkdir -p .gitea-release rm -rf .gitea-release/* cp bin/cli .gitea-release/edge_cli_amd64 # Create client-sdk-testsuite package + tools/yq/bin/yq -i '.version = "$(FULL_VERSION)"' ./misc/client-sdk-testsuite/dist/manifest.yml .gitea-release/edge_cli_amd64 app package -d ./misc/client-sdk-testsuite/dist -o .gitea-release GITEA_RELEASE_PROJECT="edge" \ @@ -83,4 +84,9 @@ gitea-release: tools/gitea-release/bin/gitea-release.sh build tools/gitea-release/bin/gitea-release.sh: mkdir -p tools/gitea-release/bin curl --output tools/gitea-release/bin/gitea-release.sh https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/gitea/gitea-release.sh - chmod +x tools/gitea-release/bin/gitea-release.sh \ No newline at end of file + chmod +x tools/gitea-release/bin/gitea-release.sh + +tools/yq/bin/yq: + mkdir -p tools/yq/bin + curl -L --output tools/yq/bin/yq https://github.com/mikefarah/yq/releases/download/v4.31.1/yq_linux_amd64 + chmod +x tools/yq/bin/yq \ No newline at end of file