From bff3a777ae76a3d10daf0a704301d1beec328547 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Wed, 11 Sep 2019 22:57:24 -0400 Subject: [PATCH] Try using strip.components with drone-scp This should, in theory, strip out the leading docs directory when doing the copy. --- .github/workflows/docs-deploy.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 89335a54..29286a9e 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -8,11 +8,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Prepare documentation for copy - run: | - ls | grep -v docs | xargs rm -r - cp -r docs/* . - rm -r docs - name: SCP to documentation server uses: appleboy/scp-action@v0.0.1 env: @@ -20,4 +15,6 @@ jobs: KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }} HOST: ${{ secrets.DOCUMENTATION_SSH_HOST }} TARGET: "/var/www/select2-docs/user" - SOURCE: "*" + SOURCE: "docs/*" + args: + "--strip.components 1" \ No newline at end of file