From c95ed1796a07c1fac11e95d6212abcaea50836e3 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Wed, 11 Sep 2019 23:07:31 -0400 Subject: [PATCH] Switch to using rsync --- .github/workflows/docs-deploy.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 0dacdca2..f09764bd 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -8,13 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: SCP to documentation server - uses: appleboy/scp-action@v0.0.1 + - name: Copy to documentation server + uses: maxheld83/rsync@v0.1.0 env: USERNAME: ${{ secrets.DOCUMENTATION_SSH_USERNAME }} - KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }} - HOST: ${{ secrets.DOCUMENTATION_SSH_HOST }} - TARGET: "/var/www/select2-docs/user" - SOURCE: "docs/*" + SSH_PRIVATE_KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }} + HOST_NAME: ${{ secrets.DOCUMENTATION_SSH_HOST }} with: - args: "--strip.components 1" \ No newline at end of file + args: "docs/ $USERNAME@$HOST_NAME:/var/www/select2-docs/user/"