Skip to content

Commit

Permalink
sftp-test
Browse files Browse the repository at this point in the history
  • Loading branch information
DevCaikun committed Jul 13, 2024
1 parent 4497d7f commit e5d8383
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ jobs:
uses: appleboy/ssh-action@v0.1.5
with:
host: sftp.yangmufa.com
username: ${{ secrets.sftp_user }}
key: ${{ secrets.sftp_pwd }}
# username: ${{ secrets.sftp_user }}
# key: ${{ secrets.sftp_pwd }}
username: "sftpuser"
key: "sftppassword"
# -mindepth 1 确保不会删除 upload 目录本身,只删除其中的内容
# ! -name 'filename' 用于排除特定文件和文件夹
# -exec rm -rf {} + 将找到的文件和文件夹传递给 rm -rf 命令以进行删除
Expand All @@ -103,8 +105,10 @@ jobs:
source: "build/*"
target: "/docker/nginx/html/itBlog/upload"
host: sftp.yangmufa.com
username: ${{ secrets.sftp_user }}
key: ${{ secrets.sftp_pwd }}
# username: ${{ secrets.sftp_user }}
# key: ${{ secrets.sftp_pwd }}
username: "sftpuser"
key: "sftppassword"
env:
CI: true

Expand Down

0 comments on commit e5d8383

Please sign in to comment.