Skip to content

Commit

Permalink
Add ant target to push generated HTML to website
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#258 for details
  • Loading branch information
Alex Stuart committed Sep 23, 2020
1 parent a0d5a1b commit d3e9625
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,24 @@
</if>
</target>

<target name="publish.generated.html">
<!--
Push HTML files generated outwith production pipeline to the web server - but only when in prod env!
-->
<if>
<equals arg1="${env}" arg2="prod"/>
<then>
<echo>Pushing HTML files to web site.</echo>
<echo>-> Web1</echo>
<scp failonerror="true" remoteTodir="${www.url.members}" keyfile="~/.ssh/id_rsa" knownhosts="~/.ssh/known_hosts">
<fileset dir="${build.dir}">
<include name="orgnamescope.html"/>
</fileset>
</scp>
</then>
</if>
</target>


<!--
*****************************************
Expand Down

0 comments on commit d3e9625

Please sign in to comment.