Commit 8bf5849e authored by 张醒狮's avatar 张醒狮

更新.gitlab-ci-vue-nvm.yml

parent 97ab43b8
......@@ -47,7 +47,7 @@ check_and_cicd:
# 编译
- echo -e "NginxAliasDirectory:${NginxAliasDirectory}"
- '[[ ${IsVite} = "true" ]] && PathType="base" || PathType="assetPath"'
- '[[ ${EnableOSS} = "true" ]] && options="-- --${PathType} https://rscdn.zmcms.cn/${NginxAliasDirectory}" || options=""'
- '[[ ${EnableOSS} = "true" ]] && options="-- --${PathType} https://rscdn.zmcms.cn/${NginxAliasDirectory}/" || options=""'
- npm run build ${options}
# 部署OSS
- '[[ ${EnableOSS} = "true" ]] && ossutil64 cp -rf dist/ oss://zmcms-cn-vue/${NginxAliasDirectory} --exclude "*.html" --exclude ".htaccess" && echo "推送对象存储成功!"'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment