forked from kissygalleryteam/kissy-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
60 lines (46 loc) · 1.71 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0"?>
<!--
kissy gallery 构建文件
@author [email protected]
-->
<project name="kissy-gallery-build"
default="sync" xmlns:ac="antlib:net.sf.antcontrib">
<description>KISSY gallery Build File</description>
<property name="git.origin" value="origin"/>
<property name="git.remote" value="remote"/>
<property name="git.master" value="master"/>
<property name="git.gh-pages" value="gh-pages"/>
<target name="sync">
<input addproperty="git.commit.message">
git commit message :
</input>
<ac:if>
<not>
<equals arg1="${git.commit.message}" arg2="">
</equals>
</not>
<ac:then>
<exec executable="cmd"
failonerror="true">
<arg line="/c git add ."/>
</exec>
<exec executable="cmd" failonerror="true">
<arg line="/c git commit -am '${git.commit.message}'"/>
</exec>
</ac:then>
</ac:if>
<exec executable="cmd" failonerror="true">
<arg line="/c git push ${git.origin} ${git.master}:${git.gh-pages}"/>
</exec>
<exec executable="cmd" failonerror="true">
<arg line="/c git push ${git.origin} ${git.master}:${git.master}"/>
</exec>
<exec executable="cmd" failonerror="true">
<arg line="/c git push ${git.remote} ${git.master}:${git.gh-pages}"/>
</exec>
<!--push master to gh-pages also-->
<exec executable="cmd" failonerror="true">
<arg line="/c git push ${git.remote} ${git.master}:${git.master}"/>
</exec>
</target>
</project>