fix: 更换 git-log 文件类型,防止冲突

This commit is contained in:
zhangshuai
2022-10-12 17:00:57 +08:00
parent 96e0c08834
commit 350c0cae11

View File

@@ -50,13 +50,13 @@ dev_build:
- export FILE_NAME=nz-gui-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA.zip
# 生成 git log 日志文件
- sed -i 's+</body>+<a style="position:fixed;bottom:20px;left:40px;z-index:999;color:white;" target="_blank" href="/static/git-log.html">更新记录</a>\n</body>+g' ./index.html;
- echo "<html>" > ./static/git-log.html
- echo "<head>" >> ./static/git-log.html
- echo '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">' >> ./static/git-log.html
- echo "</head>" >> ./static/git-log.html
- echo "<pre>" >> ./static/git-log.html
- "git log -100 --pretty=format:'%ad : %s' >> ./static/git-log.html"
- echo "</pre></html>" >> ./static/git-log.html
# echo "<html>" > ./static/git-log.html
# echo "<head>" >> ./static/git-log.html
# echo '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">' >> ./static/git-log.html
# echo "</head>" >> ./static/git-log.html
# echo "<pre>" >> ./static/git-log.html
- "git log -100 --pretty=format:'%ad : %s' >> ./static/git-log.log"
# echo "</pre></html>" >> ./static/git-log.html
- zip -q -r $FILE_NAME ./*
# 将 dist zip 上传到 minio