2019-09-12 04:49:00 +03:00
|
|
|
name: Documentation Deployment
|
|
|
|
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
grav:
|
|
|
|
name: Deploy Grav
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2019-09-12 05:51:44 +03:00
|
|
|
- name: Prepare documentation for copy
|
|
|
|
run: |
|
|
|
|
ls | grep -v docs | xargs rm -r
|
|
|
|
cp -r docs/* .
|
|
|
|
rm -r docs
|
2019-09-12 04:49:00 +03:00
|
|
|
- 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 }}
|
2019-09-12 05:35:52 +03:00
|
|
|
TARGET: "/var/www/select2-docs/user"
|
2019-09-12 05:51:44 +03:00
|
|
|
SOURCE: "*"
|