summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Zschocke <f.zschocke+git@gmail.com>2023-04-06 20:19:04 +0200
committerFlorian Zschocke <f.zschocke+git@gmail.com>2023-04-06 20:19:04 +0200
commite45fe069441d0cde5391e381500aab93a7fa11ac (patch)
tree0402a6a162b4e1272efd5c5cfb306e4fc6c2beb8
parentc4f2dd0a312d526680892974fae9b9c80a786c94 (diff)
downloadgitblit-e45fe069441d0cde5391e381500aab93a7fa11ac.tar.gz
gitblit-e45fe069441d0cde5391e381500aab93a7fa11ac.zip
build: Keep CNAME file when updating gh-pages branch
The CNAME file on the gh-pages branch is used to link the gh-pages to the gitblit.com domain. So it needs to stay around when updating the gh-pages branch with new documentation pages. This is possible since Moxie 0.10.0 with a new `keep` sub-element.
-rw-r--r--build.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index d6c3b01f..193aeb6b 100644
--- a/build.xml
+++ b/build.xml
@@ -722,9 +722,13 @@
Update the gh-pages branch with the current site
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
- <target name="updateGhPages">
+ <target name="updateGhPages" depends="prepare">
<!-- Build gh-pages branch -->
- <mx:ghpages repositorydir="${basedir}" obliterate="true" />
+ <mx:ghpages repositorydir="${basedir}" obliterate="true">
+ <keep>
+ <file name="CNAME"/>
+ </keep>
+ </mx:ghpages>
</target>