Skip to content

Commit

Permalink
refactor(ci): 优化CI
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Oct 9, 2021
1 parent 79d9f2d commit 1612906
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy2prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
script: | # 执行命令(运行到服务器)cd:要确保服务器有这个目录; wget:下载上一步的release到服务器; tar:解压; 安装依赖;启动服务
cd /root/docker/code/WeCuit
tar -zxvf dist.tgz
rm -rf admin-ui
mv dist admin-ui
rm -rf admin-ui/*
mv dist/* admin-ui
rm -rf dist
rm -f dist.tgz
5 changes: 3 additions & 2 deletions .github/workflows/deploy2test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
script: | # 执行命令(运行到服务器)cd:要确保服务器有这个目录; tar:解压;
cd /root/docker/code/WeCuit
tar -zxvf dist.tgz
rm -rf admin-ui
mv dist admin-ui
rm -rf admin-ui/*
mv dist/* admin-ui
rm -rf dist
rm -f dist.tgz

0 comments on commit 1612906

Please sign in to comment.