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.
This commit is contained in:
parent
b3c6d3ebfe
commit
29d01a00c5
7
.github/workflows/docs-deploy.yml
vendored
7
.github/workflows/docs-deploy.yml
vendored
@ -8,6 +8,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- 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
|
- name: SCP to documentation server
|
||||||
uses: appleboy/scp-action@v0.0.1
|
uses: appleboy/scp-action@v0.0.1
|
||||||
env:
|
env:
|
||||||
@ -15,4 +20,4 @@ jobs:
|
|||||||
KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }}
|
KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }}
|
||||||
HOST: ${{ secrets.DOCUMENTATION_SSH_HOST }}
|
HOST: ${{ secrets.DOCUMENTATION_SSH_HOST }}
|
||||||
TARGET: "/var/www/select2-docs/user"
|
TARGET: "/var/www/select2-docs/user"
|
||||||
SOURCE: "docs/*"
|
SOURCE: "*"
|
||||||
|
Loading…
Reference in New Issue
Block a user