]> source.dussan.org Git - gitblit.git/commitdiff
build: Keep CNAME file when updating gh-pages branch
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Thu, 6 Apr 2023 18:19:04 +0000 (20:19 +0200)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Thu, 6 Apr 2023 18:19:04 +0000 (20:19 +0200)
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.

build.xml

index d6c3b01ff9a4ed04e809a02faabcf471fefae3e2..193aeb6b8fdb3b0f48bafa70e577a3d22fe04416 100644 (file)
--- a/build.xml
+++ b/build.xml
                Update the gh-pages branch with the current site\r
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
        -->\r
-       <target name="updateGhPages">\r
+       <target name="updateGhPages" depends="prepare">\r
                <!-- Build gh-pages branch -->\r
-               <mx:ghpages repositorydir="${basedir}" obliterate="true" />\r
+               <mx:ghpages repositorydir="${basedir}" obliterate="true">\r
+                       <keep>\r
+                               <file name="CNAME"/>\r
+                       </keep>\r
+               </mx:ghpages>\r
        </target>\r
 \r
 \r