Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JunLiangWangX authored Feb 3, 2024
1 parent 20890c1 commit a618517
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ jobs:

- if: ${{ github.event_name == 'push' && success() }}
name: deploy file to server
uses: wlixcc/[email protected]
with:
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_IP }}
username: 'root'
server: '${{ secrets.SERVER_IP }}'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} # 引用之前创建好的secret
local_path: './public/*'
remote_path: "/home/www/htdocs/wangjunliang/FrontEnd-Engineering-Guide/"
sftp_only: false
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: './public/*'
target: "/home/www/htdocs/wangjunliang/FrontEnd-Engineering-Guide/"

0 comments on commit a618517

Please sign in to comment.