add manual deploy for docs
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 10 Nov 2022 10:55:57 +0000 (10:55 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 10 Nov 2022 10:55:57 +0000 (10:55 +0000)
.gitignore
docs/Makefile

index f9de4ed49fac9e4922473f391fe2237cbe6f6ef0..14373fb8c557f12924e3bc3b683fa61a9db12547 100644 (file)
@@ -1,5 +1,6 @@
 # App artifacts
 docs/site
+*.zip
 *.sw*
 secret
 /_build
index 022459cf03d56ba95fd7bb093e3f235c7d379742..85b6dee6511556091ad9736092f0ad087130409f 100644 (file)
@@ -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)