Skip to content

Commit 6134e66

Browse files
committed
added git tag and git push targets
1 parent b29b3a4 commit 6134e66

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

build.fsx

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#r @"tools/FAKE/tools/FakeLib.dll"
22
open Fake
33
open Fake.ProcessHelper
4+
open Fake.Git
45

5-
let npmVersion = "3.2.1"
6-
let nugetVersion = "3.2.1-fake0"
6+
let npmVersion = "3.2.0"
7+
let nugetVersion = "3.2.0-fake1"
78
let pkgDir = "./pkg/"
89
let publish = (getBuildParamOrDefault "publish" "false") = "true"
910

@@ -57,13 +58,25 @@ Target "NuGetLess" (fun _ ->
5758
})
5859
)
5960

61+
Target "GitPush" (fun _ ->
62+
push "./"
63+
)
64+
65+
Target "GitTag" (fun _ ->
66+
let tagName = ("v"+nugetVersion)
67+
tag "./" tagName
68+
pushTag "./" "origin" tagName
69+
)
70+
6071
Target "Clean" DoNothing
6172
Target "Default" DoNothing
6273

6374
"Clean"
6475
==> "NpmInstall"
6576
==> "NuGetCss"
6677
==> "NuGetLess"
78+
=?> ("GitPush", publish)
79+
=?> ("GitTag", publish)
6780
==> "Default"
6881

6982
"CleanNpm" ==> "CleanPkg" ==> "Clean"

0 commit comments

Comments
 (0)