Permalink
Browse files

Only publishing files in artifacts\published

  • Loading branch information...
1 parent 16ddaad commit 5b41fed92817bb971041791f02dfaca0f5b06b32 @joshuaflanagan committed May 20, 2009
Showing with 7 additions and 4 deletions.
  1. +7 −4 Build.proj
  2. BIN lib/msbuildtasks/ICSharpCode.SharpZipLib.dll
View
11 Build.proj
@@ -17,7 +17,7 @@
<Import Project="lib\MSBuildTasks\MSBuild.Community.Tasks.Targets" />
-<Target Name="Build" DependsOnTargets="Clean;Compile;Test;Document;Merge;Package" />
+<Target Name="Build" DependsOnTargets="Clean;Compile;Test;Document;Merge;Publish" />
<Target Name="GenerateBuildInfo" Condition="$(RunningOnBuildServer)">
<AssemblyInfo CodeLanguage="CS" OutputFile="src\docu.console\BuildInfo.cs"
@@ -54,12 +54,15 @@
</ItemGroup>
<Copy SourceFiles="LICENSE.txt" DestinationFolder="artifacts" />
<Copy SourceFiles="@(DefaultTemplates)" DestinationFolder="artifacts\templates\%(DefaultTemplates.RecursiveDir)" />
-
+</Target>
+
+<Target Name="Publish" DependsOnTargets="Package" Condition="$(RunningOnBuildServer)">
+ <!-- All files in artifacts\published will be available for download from the teamcity.codebetter.com website -->
<ItemGroup>
<FilesToZip Include="artifacts\**" />
- <Zip Files="@(FilesToZip)" ZipFileName="artifacts\published\docu_$(BuildVersion).zip" />
</ItemGroup>
-
+ <MakeDir Directories="artifacts\published" />
+ <Zip Files="@(FilesToZip)" WorkingDirectory="artifacts" ZipFileName="artifacts\published\docu_$(BuildVersion).zip" />
</Target>
</Project>
View
BIN lib/msbuildtasks/ICSharpCode.SharpZipLib.dll
Binary file not shown.

0 comments on commit 5b41fed

Please sign in to comment.