~whereswaldon/arborchat

3e6005fde9c7a76c29869747d16a04b520ae0ddf — Amolith 3 years ago 168263d
Add MkDocs build manifest

This is a simple manifest that spins up an Arch VM, installs Material
for MkDocs [1], builds the site, then pushes it to a web server. The
port, user, server IP address, and webroot path are specified using
environment variables.

[1]: https://squidfunk.github.io/mkdocs-material/
[2]: https://www.mkdocs.org/
1 files changed, 27 insertions(+), 0 deletions(-)

A .builds/mkdocs.yml
A .builds/mkdocs.yml => .builds/mkdocs.yml +27 -0
@@ 0,0 1,27 @@
image: archlinux
packages:
- python
- python-pip
- rsync
environment:
  port:
  deploy:
  path:
secrets:
-
sources:
- https://git.sr.ht/~whereswaldon/arborchat/
- https://git.sr.ht/~amolith/arbordocs/
tasks:
- installation: |
    pip install mkdocs-material
    pip install mkdocs-git-revision-date-plugin
- setup: |
    cd arbordocs
    git submodule update --init
- build: |
    cd arbordocs
    ~/.local/bin/mkdocs build
- deploy: |
    cd arbordocs
    rsync -amzz --delete-before -e "ssh -o StrictHostKeyChecking=accept-new -p $port" site/ $deploy:$path