Skip to content

Commit 82a1370

Browse files
committed
Patch release notes
Point to github release for version tag
1 parent d981b84 commit 82a1370

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

build/scripts/Releasing.fsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,13 @@ type Release() =
109109
match success with
110110
| 0 -> traceFAKE "publish to myget succeeded" |> ignore
111111
| _ -> 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
112121
)

build/scripts/Targets.fsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Target "Version" <| fun _ ->
6666
Versioning.PatchProjectJsons()
6767

6868
Target "Release" <| fun _ ->
69-
Release.PackAllDnx()
69+
Release.PatchReleaseNotes()
70+
Release.PackAllDnx()
7071
Sign.ValidateNugetDllAreSignedCorrectly()
7172
Versioning.ValidateArtifacts()
7273

src/Elasticsearch.Net/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"copyright": "2014-2016 Elasticsearch BV",
2727
"version": "2.1.1",
28+
"releaseNotes": "See https://github.com/elastic/elasticsearch-net/releases",
2829
"compilationOptions": {
2930
"warningsAsErrors": false
3031
},

src/Nest/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"url": "https://github.com/elastic/elasticsearch-net"
2525
},
2626
"copyright": "2014-2016 Elasticsearch BV",
27+
"releaseNotes": "See https://github.com/elastic/elasticsearch-net/releases",
2728
"version": "2.1.1",
2829
"compilationOptions": {
2930
"warningsAsErrors": false

0 commit comments

Comments
 (0)