diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9e98117b2004af3dcfa4d86628c26cc540558c67..48111171fb0e940455e3b49c91eeaee5de41cb4d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,6 +35,7 @@ before_script:
 build_only:
   script:
     - cd slides
+    - ./gen_index-sh
     - make
     - make deploy
     - rsync -avz prog_seq_c_cours ur1bg_malas@ur1bg.ftp.infomaniak.com:web/malaspinas/
diff --git a/slides/Makefile b/slides/Makefile
index 904288fe86efb1f09b496056afef160866ffc185..1f4fc110f081c30824818e0960ca0ea7d491ba9e 100644
--- a/slides/Makefile
+++ b/slides/Makefile
@@ -50,7 +50,7 @@ index.md:
 index.html: index.md
 	pandoc -s $(OPTIONS) -o $@ $^
 
-deploy: all index.html
+deploy: all
 	mkdir -p prog_seq_c_cours
 	cp *.pdf prog_seq_c_cours
 	cp *.html prog_seq_c_cours