Verified Commit dc359d9f authored by georg's avatar georg

CI: Set jekylls 'baseurl' if we're not dealing with the master branch

Relates #39
parent 33aac140
......@@ -45,6 +45,10 @@ build:
APT_INSTALL_PACKAGES: jekyll
<<: *setup_apt
script:
# Set jekylls 'baseurl' option in case we're not dealing with the master branch.
- 'if ! [ "$CI_COMMIT_REF_SLUG" == "master" ]; then
echo "baseurl: /review/$CI_COMMIT_REF_SLUG" >> _config.yml;
fi'
- jekyll build
- tar cfz site.tar.gz _site
stage: build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment