diff --git a/.ci/_config_old.yml b/.ci/_config_old.yml new file mode 100644 index 0000000000000000000000000000000000000000..9a62b88f0c1034d3827d9a3e19a940b36da4662d --- /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 2cf5bfed0efdac402b29032332e00af0daf3e409..39bb8f29398b96a639938ca5507d84f2d363f02f 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