diff options
author | Florian Zschocke <f.zschocke+git@gmail.com> | 2023-04-06 20:19:04 +0200 |
---|---|---|
committer | Florian Zschocke <f.zschocke+git@gmail.com> | 2023-04-06 20:19:04 +0200 |
commit | e45fe069441d0cde5391e381500aab93a7fa11ac (patch) | |
tree | 0402a6a162b4e1272efd5c5cfb306e4fc6c2beb8 | |
parent | c4f2dd0a312d526680892974fae9b9c80a786c94 (diff) | |
download | gitblit-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.xml | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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>
|