forked from fslaborg/FsMath
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReleaseNotesTasks.fs
More file actions
31 lines (22 loc) · 915 Bytes
/
ReleaseNotesTasks.fs
File metadata and controls
31 lines (22 loc) · 915 Bytes
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
module ReleaseNotesTasks
open Fake.Extensions.Release
open BlackFox.Fake
/// This might not be necessary, mostly useful for apps which want to display current version as it creates an accessible F# version script from RELEASE_NOTES.md
let createAssemblyVersion = BuildTask.create "createvfs" [] {
AssemblyVersion.create ProjectInfo.project
}
// https://github.com/Freymaurer/Fake.Extensions.Release#releaseupdate
let updateReleaseNotes = BuildTask.createFn "ReleaseNotes" [] (fun config ->
ReleaseNotes.update(ProjectInfo.gitOwner, ProjectInfo.project, config)
)
// https://github.com/Freymaurer/Fake.Extensions.Release#githubdraft
let githubDraft = BuildTask.createFn "GithubDraft" [] (fun config ->
let body = "We are ready to go for the first release!"
Github.draft(
ProjectInfo.gitOwner,
ProjectInfo.project,
(Some body),
None,
config
)
)