From cbf06b5d8973d485b8de8d710669fffd37fe0796 Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@pm.me>
Date: Fri, 7 Oct 2022 13:22:47 +0200
Subject: [PATCH] sync better

---
 .gitlab-ci.yml | 6 ++----
 Makefile       | 1 +
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 21a43ca..1a6eab7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,8 +34,6 @@ build_and_deploy:
   script:
     - pandoc -v
     - make update SHELL=bash
-    - make SHELL=bash
-    - rsync -avzz css ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
-    - rsync -avzz figs ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
-    - rsync -avzz index.html ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
+    - make deploy SHELL=bash
+    - rsync -avzz site/* ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
     - blc https://malaspinas.academy/index.html -ro --exclude *.pdf --filter-level 3
diff --git a/Makefile b/Makefile
index de3acf5..15fc096 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ deploy: all
 	mkdir -p site/archives
 	cp index.html site/
 	cp -r css site/
+	cp -r figs site/
 	cp -r archives/index.html site/archives/
 
 update:
-- 
GitLab