Skip to content

Commit

Permalink
Preserve CNAME for custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd committed Jan 23, 2020
1 parent f07e2e9 commit ed1dc39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins_build
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ if test "${job_name}" = "master branch"; then
git clone https://github.com/nexusformat/definitions.git --branch gh-pages ${DIST_ROOT}

# need to preserve CNAME file for custom github domain
cp -f ${DIST_ROOT}/CNAME /tmp/CNAME.$$
[ -f ${DIST_ROOT}/CNAME ] && cp -f ${DIST_ROOT}/CNAME /tmp/CNAME.$$
rm -fr ${DIST_ROOT}/*
mv /tmp/CNAME.$$ ${DIST_ROOT}/CNAME
[ -f /tmp/CNAME.$$ ] && mv /tmp/CNAME.$$ ${DIST_ROOT}/CNAME

mkdir ${DIST_ROOT}/pdf

Expand Down

0 comments on commit ed1dc39

Please sign in to comment.