A .builds/mkdocs.yml => .builds/mkdocs.yml +23 -0
@@ 0,0 1,23 @@
+image: archlinux
+packages:
+- python
+- python-pip
+- rsync
+environment:
+ port: 22
+ deploy: sourcehut@nixnet.services
+ path: /var/www/nnmail
+secrets:
+- baa22a61-055b-4185-8d94-a64d3b714aeb
+sources:
+- https://git.sr.ht/~amolith/nnmail
+tasks:
+- installation: |
+ pip install mkdocs-material
+ pip install mkdocs-git-revision-date-plugin
+- build: |
+ cd libremedia.info
+ ~/.local/bin/mkdocs build
+- deploy: |
+ cd libremedia.info
+ rsync -amzz --delete-before -e "ssh -o StrictHostKeyChecking=accept-new -p $port" site/ $deploy:$path