Skip to content

Commit ebd76a6

Browse files
committed
add version for cdn
1 parent 74077b8 commit ebd76a6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export VERSION=3.0.6
22
export RELEASE_PATH="releases/aliyun-cli-${VERSION}"
33

44
all: build
5-
publish: build build_mac build_linux build_windows
5+
publish: build build_mac build_linux build_windows gen_version
66

77
deps:
88
-go get github.com/aliyun/aliyun-openapi-meta
@@ -39,6 +39,11 @@ build_windows:
3939
aliyun oss cp out/aliyun-cli-windows-${VERSION}-amd64.zip oss://aliyun-cli --force --profile oss
4040
rm aliyun.exe
4141

42+
gen_version:
43+
-rm out/version
44+
echo ${VERSION} >> out/version
45+
aliyun oss cp out/version oss://aliyun-cli --force --profile oss
46+
4247
git_release: clean build make_release_dir release_mac release_linux release_windows
4348

4449
make_release_dir:

0 commit comments

Comments
 (0)