From 29d01a00c5d2c13d5bfde50c8afe76b909f1ebad Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Wed, 11 Sep 2019 22:51:44 -0400 Subject: [PATCH] Move docs into root directory before copying Hopefully this fixes the issue where it was unpacking the enitre directory into the destination instead of the individually specified files. --- .github/workflows/docs-deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 5d568fbf..89335a54 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -8,6 +8,11 @@ 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: @@ -15,4 +20,4 @@ jobs: KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }} HOST: ${{ secrets.DOCUMENTATION_SSH_HOST }} TARGET: "/var/www/select2-docs/user" - SOURCE: "docs/*" + SOURCE: "*"