Skip to content

Commit 29d01a0

Browse files
committed
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.
1 parent b3c6d3e commit 29d01a0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/docs-deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v1
11+
- name: Prepare documentation for copy
12+
run: |
13+
ls | grep -v docs | xargs rm -r
14+
cp -r docs/* .
15+
rm -r docs
1116
- name: SCP to documentation server
1217
uses: appleboy/scp-action@v0.0.1
1318
env:
1419
USERNAME: ${{ secrets.DOCUMENTATION_SSH_USERNAME }}
1520
KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }}
1621
HOST: ${{ secrets.DOCUMENTATION_SSH_HOST }}
1722
TARGET: "/var/www/select2-docs/user"
18-
SOURCE: "docs/*"
23+
SOURCE: "*"

0 commit comments

Comments
 (0)