summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDashie <dashie@sigpipe.me>2021-03-15 08:45:29 +0100
committerDashie <dashie@sigpipe.me>2021-03-15 08:45:29 +0100
commitb07b50ad01664207fcb0299ca55c4c38ed78f930 (patch)
tree9c15512eaab7d3c527b305b2146530e6bbecf386
parentbab1c43b55b17a76b8a9c51259ff05517f60369e (diff)
Add build of docs
-rw-r--r--.circleci/config.yml7
-rw-r--r--.github/workflows/build-and-test.yml0
-rw-r--r--.github/workflows/build-docs.yml37
3 files changed, 38 insertions, 6 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 9a276ad2..916d1f8c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -312,12 +312,7 @@ jobs:
workflows:
version: 2
- build-docs:
- jobs:
- - build-develop-doc:
- filters:
- branches:
- only: master
+
build-and-test:
jobs:
- install
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/.github/workflows/build-and-test.yml
diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml
new file mode 100644
index 00000000..63e57e63
--- /dev/null
+++ b/.github/workflows/build-docs.yml
@@ -0,0 +1,37 @@
+name: Build documentation
+
+on:
+ push:
+ branches:
+ - master
+
+env:
+ BUILD_PATH: ../docs-build
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python 3.9
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.9
+ - name: Install dependencies
+ run:
+ - apt install -y graphviz
+ - pip3 install sphinx-guillotina-theme sphinx
+ - name: Build docs
+ run:
+ - ./build_docs.sh
+ working-directory: docs
+ - name: Deploy docs
+ uses: burnett01/rsync-deployments@4.1
+ with:
+ switches: -avc --delete
+ path: docs-build/
+ remote_path: /
+ remote_host: ${{ secrets.DOCS_DEPLOY_HOST }}
+ remote_user: ${{ secrets.DOCS_DEPLOY_USER }}
+ remote_key: ${{ secrets. }}