Skip to content

Commit ecdfdaf

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

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ jobs:
4444
fi
4545
4646
- name: Deploy to server via SFTP
47-
uses: milanmk/actions-file-deployer@master
47+
uses: wlixcc/[email protected]
4848
with:
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/"
49+
username: ${{ secrets.SFTP_USERNAME }}
50+
server: ${{ secrets.SFTP_HOST }}
51+
port: ${{ secrets.SFTP_PORT }}
52+
local_path: '.vitepress/dist/*'
53+
remote_path: ${{ secrets.SFTP_SERVER_DIR }}
54+
sftp_only: true
55+
ssh_private_key: ${{ secrets.SFTP_KEY }}

0 commit comments

Comments
 (0)