File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -109,4 +109,13 @@ type Release() =
109
109
match success with
110
110
| 0 -> traceFAKE " publish to myget succeeded" |> ignore
111
111
| _ -> failwith " publish to myget failed" |> ignore
112
+ )
113
+
114
+ static member PatchReleaseNotes () =
115
+ !! " src/**/project.json"
116
+ |> Seq.iter( fun f ->
117
+ RegexReplaceInFileWithEncoding
118
+ " \" releaseNotes\"\\ s?:\\ s?\" .*\" "
119
+ ( sprintf " \" releaseNotes\" : \" See https://github.com/elastic/elasticsearch-net/releases/tag/%s \" " Versioning.FileVersion)
120
+ ( new System.Text.UTF8Encoding( false )) f
112
121
)
Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ Target "Version" <| fun _ ->
66
66
Versioning.PatchProjectJsons()
67
67
68
68
Target " Release" <| fun _ ->
69
- Release.PackAllDnx()
69
+ Release.PatchReleaseNotes()
70
+ Release.PackAllDnx()
70
71
Sign.ValidateNugetDllAreSignedCorrectly()
71
72
Versioning.ValidateArtifacts()
72
73
Original file line number Diff line number Diff line change 25
25
},
26
26
"copyright" : " 2014-2016 Elasticsearch BV" ,
27
27
"version" : " 2.1.1" ,
28
+ "releaseNotes" : " See https://github.com/elastic/elasticsearch-net/releases" ,
28
29
"compilationOptions" : {
29
30
"warningsAsErrors" : false
30
31
},
Original file line number Diff line number Diff line change 24
24
"url" : " https://github.com/elastic/elasticsearch-net"
25
25
},
26
26
"copyright" : " 2014-2016 Elasticsearch BV" ,
27
+ "releaseNotes" : " See https://github.com/elastic/elasticsearch-net/releases" ,
27
28
"version" : " 2.1.1" ,
28
29
"compilationOptions" : {
29
30
"warningsAsErrors" : false
You can’t perform that action at this time.
0 commit comments