summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-05-26 17:28:34 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-05-26 17:28:34 +0200
commitc1b6e5a49838463df3a90e83bd445863fb862356 (patch)
tree0905c9da890c10bd4799a5f77ad73fa3461b0f54
parent32d8ce7c2e66d56ec35896c5a221bc6b5b387d10 (diff)
downloadsousleciel.lol-c1b6e5a49838463df3a90e83bd445863fb862356.tar.gz
feat(Makefile): generate gzip files before upload
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fb6450c..7b4f2fe 100644
--- a/Makefile
+++ b/Makefile
@@ -25,5 +25,6 @@ clean:
- rm -r $(OUTPUT_DIR) $(TEMPORARY_DIR)
deploy: site
+ find out -type f \( -iname "*.html" -o -iname "*.css" -o -iname "*.svg" \) -exec gzip -kf {} \;
rsync -e ssh -avz --delete $(OUTPUT_DIR)/ $(REMOTE_HOST):$(REMOTE_DIR)
ssh $(REMOTE_HOST) chown -R www:www $(REMOTE_DIR)
remember that computers suck.