From 208ef5670c0110ce1c6b5d9b406614cd9a9f4679 Mon Sep 17 00:00:00 2001 From: MTRNord Date: Thu, 22 Dec 2022 13:51:00 +0200 Subject: [PATCH] Setup docs --- .github/workflows/build_docs.yml | 16 ++++++++++++++++ .gitmodules | 3 +++ documentation | 1 + 3 files changed, 20 insertions(+) create mode 100644 .github/workflows/build_docs.yml create mode 100644 .gitmodules create mode 160000 documentation diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml new file mode 100644 index 0000000..4790cab --- /dev/null +++ b/.github/workflows/build_docs.yml @@ -0,0 +1,16 @@ +on: push +name: Build and deploy GH Pages +jobs: + build: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: checkout + uses: actions/checkout@v3.0.0 + - name: build_and_deploy + uses: shalzz/zola-deploy-action@v0.16.1 + env: + BUILD_DIR: documentation + # Target branch + PAGES_BRANCH: gh-pages + TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9d5d41b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "documentation"] + path = documentation + url = https://github.com/MTRNord/matrix-spam-ml-docs.git diff --git a/documentation b/documentation new file mode 160000 index 0000000..8afa4e1 --- /dev/null +++ b/documentation @@ -0,0 +1 @@ +Subproject commit 8afa4e178dafabd4a5a7a9397090e1072f7df351