Sample

1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:

Target.create"GitHubRelease"(fun_->lettoken=matchEnvironment.environVarOrDefault"github_token"""with|swhennot(System.String.IsNullOrWhiteSpaces)->s|_->failwith"please set the github_token environment variable to a github personal access token with repro access."letfiles=runtimes@["portable";"packages"]|>List.map(funn->sprintf"nuget/dotnetcore/Fake.netcore/fake-dotnetcore-%s.zip"n)GitHub.createClientWithTokentoken|>GitHub.draftNewReleasegitOwnergitNamerelease.NugetVersion(release.SemVer.PreRelease<>None)release.Notes|>GitHub.uploadFilesfiles|>GitHub.publishDraft|>Async.RunSynchronously)