From 91f36c3ec91593a414a89e3b2fc46138b6d2f0ac Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Mon, 16 Aug 2021 14:38:34 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c7b0818..c5da6c6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,17 +1,14 @@
-image: lbmc/pandoc:2.11
-
-stages:
-  - pages
+# This file is a template, and might need editing before it works on your project.
+# Full project: https://gitlab.com/pages/plain-html
 
 pages:
-  stage: pages
+  stage: deploy
+  image: lbmc/pandoc:2.11
   script:
+    - mkdir .public
     - make
   artifacts:
     paths:
       - public
-  only:
-    - master
-  environment:
-    name: ${CI_JOB_NAME}
-
+  rules:
+    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-- 
GitLab