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