From e2fca00bf1726334cecf948b8fb8277bfb796422 Mon Sep 17 00:00:00 2001 From: fxliang Date: Sat, 28 Sep 2024 01:22:53 +0800 Subject: [PATCH] ci: set git_ref_name to PRODUCT_VERSION, for artifacts name. --- build.bat | 5 +++++ xbuild.bat | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/build.bat b/build.bat index a45be78b4..ca4e966f3 100644 --- a/build.bat +++ b/build.bat @@ -45,6 +45,11 @@ echo WEASEL_ROOT=%WEASEL_ROOT% echo WEASEL_BUNDLED_RECIPES=%WEASEL_BUNDLED_RECIPES% echo. +if defined GITHUB_ENV ( + setlocal enabledelayedexpansion + echo git_ref_name=%PRODUCT_VERSION%>>!GITHUB_ENV! +) + if defined BOOST_ROOT ( if exist "%BOOST_ROOT%\boost" goto boost_found ) diff --git a/xbuild.bat b/xbuild.bat index 5ebacb4f1..c8a50fde6 100644 --- a/xbuild.bat +++ b/xbuild.bat @@ -54,6 +54,12 @@ echo WEASEL_BUILD=%WEASEL_BUILD% echo WEASEL_ROOT=%WEASEL_ROOT% echo WEASEL_BUNDLED_RECIPES=%WEASEL_BUNDLED_RECIPES% echo BOOST_ROOT=%BOOST_ROOT% + +if defined GITHUB_ENV ( + setlocal enabledelayedexpansion + echo git_ref_name=%PRODUCT_VERSION%>>!GITHUB_ENV! +) + rem --------------------------------------------------------------------------- rem parse the command line options set build_config=release