From: FloatingGhost <hannah@coffee-and-dreams.uk>
Date: Thu, 10 Nov 2022 10:55:57 +0000 (+0000)
Subject: add manual deploy for docs
X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=dcc36df8cf97122308aa1616285064910cbdf7c5;p=akkoma

add manual deploy for docs
---

diff --git a/.gitignore b/.gitignore
index f9de4ed49..14373fb8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
 # App artifacts
 docs/site
+*.zip
 *.sw*
 secret
 /_build
diff --git a/docs/Makefile b/docs/Makefile
index 022459cf0..85b6dee65 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -1,9 +1,14 @@
 all:	install
 	pipenv run mkdocs build
 
+branch := $(shell git rev-parse --abbrev-ref HEAD)
 install:
 	pipenv install
 clean:
 	rm -rf site
 serve:
 	pipenv run python3 -m http.server -d site  
+zip:
+	zip -r docs.zip site/*
+deploy:
+	cd site && rclone copy . scaleway:akkoma-docs/$(branch)