Skip to content

Commit 239de18

Browse files
committed
fix: 修正SCP上传路径,移除strip_components
1 parent ee878a4 commit 239de18

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ jobs:
6767
username: ${{ secrets.SERVER_USER }}
6868
key: ${{ secrets.SERVER_SSH_KEY }}
6969
source: "target/TinyFlow-0.0.1-SNAPSHOT.jar"
70-
target: "/opt/TinyFlow/target/"
71-
strip_components: 1
70+
target: "/opt/TinyFlow/"
7271
overwrite: true
7372

7473
# 8. 上传前端构建产物到服务器
@@ -80,9 +79,8 @@ jobs:
8079
username: ${{ secrets.SERVER_USER }}
8180
key: ${{ secrets.SERVER_SSH_KEY }}
8281
source: "web/dist/"
83-
target: "/opt/TinyFlow/"
84-
strip_components: 1
85-
rm: true # 删除旧文件再上传,确保清除旧的hash文件
82+
target: "/opt/TinyFlow/web/"
83+
overwrite: true
8684

8785
# 9. 重启服务
8886
- name: Restart Service

0 commit comments

Comments
 (0)