From e58d959c96995e1d8c5703f2c3f38b5b269c7110 Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Wed, 29 Jul 2020 10:16:45 -0700 Subject: [PATCH] Try a different scp action to delete existing folder --- .github/workflows/main.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6a0e3c..160e1d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,11 +20,21 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Copy folder content recursively to remote - uses: garygrossgarten/github-action-scp@release +# - name: Copy folder content recursively to remote +# uses: garygrossgarten/github-action-scp@release +# with: +# local: "./" +# remote: ${{ secrets.DEPLOY_PATH }} +# host: "server.chuckdries.com" +# username: ${{ secrets.CI_USER }} +# password: ${{ secrets.CI_PASSWORD }} + - name: copy file via ssh password + uses: appleboy/scp-action@master with: - local: "./" - remote: ${{ secrets.DEPLOY_PATH }} host: "server.chuckdries.com" username: ${{ secrets.CI_USER }} password: ${{ secrets.CI_PASSWORD }} +# port: ${{ secrets.PORT }} + source: "*" + target: ${{ secrets.DEPLOY_PATH }} + rm: true