浏览代码

Added workflow for deploying documentation

This does not yet deploy the actual documentation, but it instead deploys the old docs (which are now redirects) to a temporary folder for testing.
Kevin Brown 5 年之前
父节点
当前提交
fe208f1f86
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      .github/workflows/docs-deploy.yml

+ 18 - 0
.github/workflows/docs-deploy.yml

@@ -0,0 +1,18 @@
+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/[email protected]
+        env:
+          USERNAME: ${{ secrets.DOCUMENTATION_SSH_USERNAME }}
+          KEY: ${{ secrets.DOCUMENTATION_SSH_KEY }}
+          HOST: ${{ secrets.DOCUMENTATION_SSH_HOST }}
+          TARGET: "docs/"
+          SOURCE: "docs/"