-
Notifications
You must be signed in to change notification settings - Fork 1
/
tasks.xml
47 lines (37 loc) · 1.49 KB
/
tasks.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="morpheus-docs" basedir=".">
<target name="build">
<exec executable="mkdocs">
<arg value="build"/>
</exec>
</target>
<target name="publish" depends="build">
<input message="Please enter the version for these docs" addproperty="version"/>
<echo message="Creating new docs directory on remote server for version ${version}..."/>
<exec executable="ssh" failonerror="true">
<arg value="zavtech@zavtech"/>
<arg value="mkdir -p zavtech.com/morpheus/versions/${version}/docs"/>
</exec>
<echo message="Copying docs to remote server..."/>
<exec executable="scp" failonerror="true" dir="${basedir}/site">
<arg value="-r"/>
<arg value="./"/>
<arg value="zavtech@zavtech:zavtech.com/morpheus/versions/${version}/docs"/>
</exec>
<!--echo message="Linking docs to version ${version}..."/>
<exec executable="ssh" failonerror="true">
<arg value="zavtech@zavtech"/>
<arg value="cd zavtech.com/morpheus; rm docs"/>
</exec>
<exec executable="ssh" failonerror="true">
<arg value="zavtech@zavtech"/>
<arg value="cd zavtech.com/morpheus; ln -s versions/${version}/docs docs"/>
</exec>
<echo message="Copying landing page to remote server..."/>
<exec executable="scp" failonerror="true" dir="${basedir}/website">
<arg value="-r"/>
<arg value="./"/>
<arg value="zavtech@zavtech:zavtech.com/morpheus"/>
</exec-->
</target>
</project>