Skip to content

Commit c0027de

Browse files
dwdcthlanghuihui
authored andcommitted
Update deploy.yml
1 parent bae97ad commit c0027de

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@ jobs:
4444
fi
4545
4646
- name: Deploy to server via SFTP
47-
uses: appleboy/[email protected]
47+
uses: milanmk/actions-file-deployer@master
4848
with:
49-
host: ${{ secrets.SFTP_HOST }}
50-
username: ${{ secrets.SFTP_USERNAME }}
51-
key: ${{ secrets.SFTP_KEY }}
52-
port: ${{ secrets.SFTP_PORT }}
53-
source: ".vitepress/dist/"
54-
target: ${{ secrets.SFTP_SERVER_DIR }}
55-
strip_components: 2
56-
rm: true
49+
remote-protocol: "sftp"
50+
remote-host: ${{ secrets.SFTP_HOST }}
51+
remote-user: ${{ secrets.SFTP_USERNAME }}
52+
ssh-private-key: ${{ secrets.SFTP_KEY }}
53+
remote-path: ${{ secrets.SFTP_SERVER_DIR }}
54+
local-path: ".vitepress/dist/"

0 commit comments

Comments
 (0)