29d01a00c5
Hopefully this fixes the issue where it was unpacking the enitre directory into the destination instead of the individually specified files.
24 lines
631 B
YAML
24 lines
631 B
YAML
name: Documentation Deployment
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
grav:
|
|
name: Deploy Grav
|
|
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/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: "*"
|