소스 검색

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.
Kevin Brown 5 년 전
부모
커밋
29d01a00c5
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      .github/workflows/docs-deploy.yml

+ 6 - 1
.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/[email protected]
         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: "*"