bff3a777ae
This should, in theory, strip out the leading docs directory when doing the copy.
20 lines
534 B
YAML
20 lines
534 B
YAML
name: Documentation Deployment
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
grav:
|
|
name: Deploy Grav
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: SCP to documentation server
|
|
uses: appleboy/scp-action@v0.0.1
|
|
env:
|
|
USERNAME: ${{ secrets.DOCUMENTATION_SSH_USERNAME }}
|
|
KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }}
|
|
HOST: ${{ secrets.DOCUMENTATION_SSH_HOST }}
|
|
TARGET: "/var/www/select2-docs/user"
|
|
SOURCE: "docs/*"
|
|
args:
|
|
"--strip.components 1" |