Setup docs

This commit is contained in:
MTRNord 2022-12-22 13:51:00 +02:00
parent 6314c75c9f
commit 208ef5670c
3 changed files with 20 additions and 0 deletions

16
.github/workflows/build_docs.yml vendored Normal file
View File

@ -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 }}

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "documentation"]
path = documentation
url = https://github.com/MTRNord/matrix-spam-ml-docs.git

1
documentation Submodule

@ -0,0 +1 @@
Subproject commit 8afa4e178dafabd4a5a7a9397090e1072f7df351