From 13f28f03e753cad93adddc402b81272e9c91c501 Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda@uni.lu> Date: Fri, 3 Apr 2020 15:26:37 +0200 Subject: [PATCH] feat: don't use --url in jekyll build --- .ci/_config_old.yml | 1 + .ci/deploy.sh | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .ci/_config_old.yml diff --git a/.ci/_config_old.yml b/.ci/_config_old.yml new file mode 100644 index 00000000..9a62b88f --- /dev/null +++ b/.ci/_config_old.yml @@ -0,0 +1 @@ +url: "https://r3.pages.uni.lu" diff --git a/.ci/deploy.sh b/.ci/deploy.sh index 2cf5bfed..39bb8f29 100644 --- a/.ci/deploy.sh +++ b/.ci/deploy.sh @@ -16,9 +16,12 @@ for branch in $(git for-each-ref --format='%(refname:strip=3)' refs/remotes); do git reset --hard $branch git pull + # Generate the config dynamically + echo 'url: "https://r3.pages.uni.lu"' > _config_url.yml + # build the website bundle install - bundle exec jekyll build --url="https://r3.pages.uni.lu" --baseurl="howto-cards/$artefact" -d "build/$artefact" + bundle exec jekyll build --config "_config.yml,_config_url.yml" --baseurl="howto-cards/$artefact" -d "build/$artefact" if [[ $branch == "master" ]]; then # set the 404 -- GitLab