-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.fsx
executable file
·48 lines (36 loc) · 1.06 KB
/
build.fsx
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
#I "packages/FAKE/tools"
#r "packages/FAKE/tools/FakeLib.dll"
open Fake
// Dirs
let tempDir = "./temp"
let srcDir = tempDir + "/src"
// Clean
Target "Clean" (fun _ ->
CleanDirs [ tempDir ])
// Build
Target "Build" (fun _ ->
!! "src/**/*.fsproj"
|> MSBuildRelease srcDir "Build"
|> Log "Build Source: ")
// Publish
Target "Publish" (fun _ ->
NuGet (fun p ->
{ p with
Authors = [ "Andrew Cherry" ]
Project = "SemVer.Net"
OutputPath = tempDir
WorkingDir = srcDir
Version = "2.0.0"
AccessKey = getBuildParamOrDefault "nuget_key" ""
Publish = hasBuildParam "nuget_key"
Dependencies =
[ "FParsec", GetPackageVersion "packages" "FParsec"
"FSharp.Core", GetPackageVersion "packages" "FSharp.Core" ]
Files =
[ "SemVer.dll", Some "lib/net40", None ] })
"./nuget/SemVer.nuspec")
// Dependencies
"Clean"
==> "Build"
==> "Publish"
RunTargetOrDefault "Publish"