Skip to content

Commit e45fe06

Browse files
committed
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.
1 parent c4f2dd0 commit e45fe06

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,9 +722,13 @@
722722
Update the gh-pages branch with the current site
723723
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
724724
-->
725-
<target name="updateGhPages">
725+
<target name="updateGhPages" depends="prepare">
726726
<!-- Build gh-pages branch -->
727-
<mx:ghpages repositorydir="${basedir}" obliterate="true" />
727+
<mx:ghpages repositorydir="${basedir}" obliterate="true">
728+
<keep>
729+
<file name="CNAME"/>
730+
</keep>
731+
</mx:ghpages>
728732
</target>
729733

730734

0 commit comments

Comments
 (0)