Skip to content

Commit

Permalink
fix prepare artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
matthid committed May 12, 2018
1 parent 5bc02f4 commit 841784f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -1560,11 +1560,16 @@ Target.create "PrepareArtifacts" (fun _ ->
unzip "temp/build" pack
)
Shell.copyDir "build" "temp/build" (fun _ -> true)

Directory.ensure "help"
unzip "help" (artifactsDir </> "help-markdown.zip")

unzip "src/test" (artifactsDir </> "tests.zip")
let unzipIfExists dir file =
Directory.ensure dir
if File.Exists file then
unzip dir file

// File is not available in case we already have build the full docs
unzipIfExists "help" (artifactsDir </> "help-markdown.zip")
unzipIfExists "docs" (artifactsDir </> "docs.zip")
unzipIfExists "src/test" (artifactsDir </> "tests.zip")
)

Target.create "BuildArtifacts" (fun args ->
Expand Down

0 comments on commit 841784f

Please sign in to comment.