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" // 更新地址