From 440a5195bc9dbee8ce2ec340ea5d9023b58f7c76 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Mon, 30 Mar 2020 08:58:35 +0200
Subject: [PATCH] fix dep

---
 .gitlab-ci.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1ad0938..2388e36 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,9 +8,19 @@ index:
   stage: index
   image:
     name: $CI_REGISTRY/r3/apps/zotero
+
+  before_script:
+    - CURRENT_DIR=$(pwd)
+
   script:
   - python3 generateIndex.py
 
+  artifacts:
+    paths:
+      - $CURRENT_DIR/*
+    untracked: true
+    expire_in: 1 day
+
 # This will try to build the web site, and store the result in "build" directory
 build:
   image: $CI_REGISTRY/r3/docker/jekyll-lcsb:1.4
@@ -19,6 +29,9 @@ build:
     - if: $CI_COMMIT_BRANCH == "develop"
     - if: $CI_COMMIT_BRANCH == "master"
 
+dependencies:
+    - index
+
   variables:
     JEKYLL_ENV: production
 
-- 
GitLab