diff --git a/.ci/deploy.sh b/.ci/deploy.sh index 61c0e4c7db7ac6d2e023299d70fb9aee7e6a9012..0726a1744c537fc962744c94a8b1b9c64c49a7c9 100644 --- a/.ci/deploy.sh +++ b/.ci/deploy.sh @@ -17,6 +17,11 @@ for branch in $(git for-each-ref --format='%(refname:strip=3)' refs/remotes); do # build the website 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 # checkout the current branch @@ -26,6 +31,3 @@ git reset --hard origin/$CI_COMMIT_REF_NAME # set the auto redirection cp .ci/.autoRedirect public/index.html - -# set the 404 -cp 404.html public/.