From 179b9b61eb5554d64591fa028d3aef3accde80a6 Mon Sep 17 00:00:00 2001 From: Emilis Dambauskas Date: Tue, 24 Nov 2020 00:50:16 +0200 Subject: [PATCH] Added deployment task. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index be3d406..d7105e6 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,11 @@ default: get-feeds build .PHONY: build build: index.gmi +.PHONY:deploy +deploy: + printf 'cd emilis\nput index.gmi\n' \ + | sftp -b - gemini.circumlunar.space + .PHONY: get-feeds get-feeds: @@ -47,6 +52,7 @@ index.gmi: \ }' sorted.gmi \ | tee -a "$@" cat footer.gmi >> "$@" + date +'Updated: %FT%T%:z' >> "$@" sorted.gmi: downloaded.gmi