Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Gitlab will go into maintenance Friday 3rd February from 9:00 to 10:00
Open sidebar
R3
howto-cards
Commits
d671d6ff
Commit
d671d6ff
authored
Nov 11, 2019
by
Jacek Lebioda
Browse files
Use master's 404.html
parent
aeaada5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/deploy.sh
View file @
d671d6ff
...
...
@@ -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/.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment