From 700e5a8c147aa9746770e26ef402a9f0d1d10ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Wed, 13 Dec 2023 11:45:09 +0800 Subject: [PATCH] release v0.15.2 --- RELEASE.md | 2 -- build.sh | 12 ++++++++++++ cmd/args/build.go | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 RELEASE.md diff --git a/RELEASE.md b/RELEASE.md deleted file mode 100644 index b91043de..00000000 --- a/RELEASE.md +++ /dev/null @@ -1,2 +0,0 @@ -- 支持获取Go内存占用 -- 优化节点连接管理 \ No newline at end of file diff --git a/build.sh b/build.sh index 15e66b61..f4b6af3d 100644 --- a/build.sh +++ b/build.sh @@ -28,6 +28,18 @@ tar xvf cloud-ui.tar.gz --strip-components 2 -C front #################################################################### +last_tag=`git tag | sort -V | tail -n 1` +prev_tag=`git tag | sort -V | tail -n 2 | head -n 1` +git log $last_tag..$prev_tag --pretty=format:"%s" | grep -v "^release" | sed 's/^/- /' | sort > RELEASE.md + +version=`echo $last_tag | sed 's/^v//'` +sed -i "s/^const Version = \".*\"/const Version = \"$version\"/" cmd/args/build.go + +build_version=$((`grep -oP 'BuildVersion = "\K\d+' cmd/args/build.go` + $GITHUB_RUN_NUMBER)) +sed -i "s/^const BuildVersion = \".*\"/const BuildVersion = \"$build_version\"/" cmd/args/build.go + +#################################################################### + build android arm64 build darwin amd64 diff --git a/cmd/args/build.go b/cmd/args/build.go index c7563241..51b404dc 100644 --- a/cmd/args/build.go +++ b/cmd/args/build.go @@ -2,8 +2,8 @@ package args // 版本信息 -const Version = "0.15.1" -const BuildVersion = "231204" +const Version = "0.15.2" +const BuildVersion = "231205" // 更新地址