1
0
mirror of synced 2024-11-24 22:06:07 +03:00

Try using strip.components with drone-scp

This should, in theory, strip out the leading docs directory when doing the copy.
This commit is contained in:
Kevin Brown 2019-09-11 22:57:24 -04:00
parent 29d01a00c5
commit bff3a777ae

View File

@ -8,11 +8,6 @@ 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:
@ -20,4 +15,6 @@ 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: "*" SOURCE: "docs/*"
args:
"--strip.components 1"