fix: 更换 git-log 文件类型,防止冲突
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user