Skip to content

Commit a997553

Browse files
committed
Add ReleaseNotes to GitHub release and tag the git repo
1 parent 2172fcc commit a997553

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,4 @@ FSharp.Compiler.Tools.Nuget/*.nupkg
127127
FSharp.Core.Nuget/*.nupkg
128128
*.orig
129129
.paket/paket.exe
130+
paket-files

build.fsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ let description = """
2727
interactive service that can be used for embedding F# scripting into your applications."""
2828
let tags = "F# fsharp interactive compiler editor"
2929

30-
let gitHome = "https://github.com/fsharp"
30+
let gitOwner = "fsharp"
31+
let gitHome = "https://github.com/" + gitOwner
32+
3133
let gitName = "FSharp.Compiler.Service"
3234
let gitRaw = environVarOrDefault "gitRaw" "https://raw.githubusercontent.com/fsharp"
3335

@@ -180,7 +182,23 @@ Target "ReleaseDocs" (fun _ ->
180182
Branches.push "temp/gh-pages"
181183
)
182184

183-
Target "Release" DoNothing
185+
#load "paket-files/fsharp/FAKE/modules/Octokit/Octokit.fsx"
186+
open Octokit
187+
188+
Target "Release" (fun _ ->
189+
StageAll ""
190+
Git.Commit.Commit "" (sprintf "Bump version to %s" release.NugetVersion)
191+
Branches.push ""
192+
193+
Branches.tag "" release.NugetVersion
194+
Branches.pushTag "" "origin" release.NugetVersion
195+
196+
// release on github
197+
createClient (getBuildParamOrDefault "github-user" "") (getBuildParamOrDefault "github-pw" "")
198+
|> createDraft gitOwner gitName release.NugetVersion (release.SemVer.PreRelease <> None) release.Notes
199+
|> releaseDraft
200+
|> Async.RunSynchronously
201+
)
184202

185203
// --------------------------------------------------------------------------------------
186204
// Run all targets by default. Invoke 'build <Target>' to override

paket.dependencies

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ nuget SQLite.Net.Platform.Generic 2.4.1
99
nuget NuGet.CommandLine
1010
nuget FAKE
1111
nuget FSharp.Formatting
12-
nuget SourceLink.Fake
12+
nuget SourceLink.Fake
13+
14+
github fsharp/FAKE modules/Octokit/Octokit.fsx

paket.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,25 @@ NUGET
88
FSharpVSPowerTools.Core (1.8.0)
99
FSharpVSPowerTools.Core (1.8.0)
1010
FSharp.Compiler.Service (>= 0.0.87)
11+
Microsoft.Bcl (1.1.10)
12+
Microsoft.Bcl.Build (>= 1.0.14)
13+
Microsoft.Bcl.Build (1.0.21)
14+
Microsoft.Net.Http (2.2.29)
15+
Microsoft.Bcl (>= 1.1.10)
16+
Microsoft.Bcl.Build (>= 1.0.14)
1117
NuGet.CommandLine (2.8.6)
1218
NUnit (2.6.3)
1319
NUnit.Runners (2.6.3)
20+
Octokit (0.14.0) - framework: wpv8.0
21+
Microsoft.Net.Http
1422
SourceLink.Fake (1.0.0)
1523
sqlite-net-wp8 (3.8.5) - framework: wpv8.0
1624
SQLite.Net-PCL (3.0.5)
1725
sqlite-net-wp8 (>= 3.8.5) - framework: wpv8.0
1826
SQLite.Net.Platform.Generic (2.4.1)
1927
SQLite.Net-PCL
28+
GITHUB
29+
remote: fsharp/FAKE
30+
specs:
31+
modules/Octokit/Octokit.fsx (16296d960f02a6192baa9e3f9facb32aca7184bb)
32+
Octokit

0 commit comments

Comments
 (0)