From 9dc9ba637f00f19ceb4eee8da724ae8a331112cc Mon Sep 17 00:00:00 2001 From: YanceyOfficial Date: Sun, 10 Dec 2023 20:01:23 +0800 Subject: [PATCH] ci: try easingthemes/ssh-deploy@main --- .github/workflows/github-actions.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index b9a6b853..f48409cd 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -75,14 +75,14 @@ jobs: if: github.ref == 'refs/heads/master' steps: - name: Copy file via ssh key - uses: appleboy/scp-action@v0.1.4 + uses: easingthemes/ssh-deploy@main with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - port: ${{ secrets.PORT }} - key: ${{ secrets.SSH_KEY }} - source: 'build' - target: /var/www/leetcode-trip + REMOTE_HOST: ${{ secrets.HOST }} + REMOTE_USER: ${{ secrets.USERNAME }} + SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }} + ARGS: "-rlgoDzvc -i --delete" + SOURCE: "build/" + TARGET: /var/www/leetcode-trip - uses: actions/checkout@v4 - name: Algoria DocSearch Crawler uses: darrenjennings/algolia-docsearch-action@master