We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50d9d49 commit fdd72b1Copy full SHA for fdd72b1
1 file changed
.github/workflows/main.yml
@@ -43,9 +43,10 @@ jobs:
43
key: ${{ secrets.SSH_PRIVATE_KEY }}
44
port: ${{ secrets.SSH_PORT }}
45
source: "dist/*" # Vue默认输出目录,根据实际情况调整
46
- target: "/home/srv/tmphr" # 服务器目标路径
+ target: "/home/gh_ations_hr/tmphr" # 服务器目标路径
47
strip_components: 1 # 移除dist/前缀
48
overwrite: true
49
+ rm: true
50
51
- name: Deploy to Server
52
uses: appleboy/ssh-action@v1
@@ -58,4 +59,6 @@ jobs:
58
59
# 在远程服务器上执行的命令
60
cd ~
61
date >> ations.log
62
+ rm -r /home/src/tmphr/*
63
+ mv ~/tmphr/* /home/src/tmphr/*
64
# ... 其他部署命令 ...
0 commit comments