Skip to content
Snippets Groups Projects
Verified Commit 4097f455 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

prepare index yml

parent 3b7f3a7d
No related branches found
No related tags found
2 merge requests!162Regular merge of develop,!161Automate index
......@@ -2,10 +2,29 @@
image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.6
stages:
- prepare
- build
- generate
- deploy
# prepare
# ------------------------------------------------------------------------------------
prepare:index:
image: python
stage: prepare
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_MERGE_REQUEST_ID
script:
- python .ci/generateIndex.py
- mkdir .tmp
- cp index.md .tmp/.
artifacts:
expire_in: 1 day
paths:
- .tmp
# build
# ------------------------------------------------------------------------------------
......@@ -36,6 +55,9 @@ build:pages:
# Display, which configuration is used
- 'echo "Configuration: " && cat ".ci/_config_$CI_COMMIT_REF_NAME.yml"'
# retrieve index from previous stage
- cp .tmp/index.md .
# Run Jekyll with custom configuration
- bundle exec jekyll build -d build --config "_config.yml,.ci/_config_$CI_COMMIT_REF_NAME.yml"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment