Skip to content
Snippets Groups Projects

Use master's 404.html

Merged Jacek Lebioda requested to merge jacek.lebioda/howto-cards:use_masters_404 into develop
1 file
+ 5
3
Compare changes
  • Side-by-side
  • Inline
+ 5
3
@@ -17,6 +17,11 @@ for branch in $(git for-each-ref --format='%(refname:strip=3)' refs/remotes); do
@@ -17,6 +17,11 @@ for branch in $(git for-each-ref --format='%(refname:strip=3)' refs/remotes); do
# build the website
# build the website
bundle exec jekyll build --baseurl="howto-cards/$artefact" -d "public/$artefact"
bundle exec jekyll build --baseurl="howto-cards/$artefact" -d "public/$artefact"
 
 
if [[ $branch == "master" ]]; then
 
# set the 404
 
cp howto-cards/$artefact/404.html public/404.html
 
fi
done
done
# checkout the current branch
# checkout the current branch
@@ -26,6 +31,3 @@ git reset --hard origin/$CI_COMMIT_REF_NAME
@@ -26,6 +31,3 @@ git reset --hard origin/$CI_COMMIT_REF_NAME
# set the auto redirection
# set the auto redirection
cp .ci/.autoRedirect public/index.html
cp .ci/.autoRedirect public/index.html
# set the 404
cp 404.html public/.
Loading