Skip to content

Commit

Permalink
Bump version to 3.0.0-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtschelfthout committed Feb 25, 2024
1 parent 3d2a38f commit 21a7ccd
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,7 @@ let pushNuGet (_ : HaveTested) (_ : HavePacked) =
let nugetKey =
match Environment.GetEnvironmentVariable "NUGET_KEY" with
| null ->
match Environment.GetEnvironmentVariable "NUGETKEY" with
| null ->
failwith "No NuGet key in environment for NuGet publish. Set NUGET_KEY."
| s -> s
| s -> s

let env =
Expand Down Expand Up @@ -554,11 +551,11 @@ type GitHubReleaseRequest =
IsPreRelease : bool
}

let release (_ : HaveTested) (_ : HaveGeneratedDocs) =
let gitHubRelease (_ : HaveTested) =
Console.WriteLine "Tagging new version and performing GitHub release... "

let pat =
match Environment.GetEnvironmentVariable "github-pat" with
match Environment.GetEnvironmentVariable "GITHUB_PAT" with
| null ->
[
"Obtain a GitHub personal access token from https://github.com/settings/tokens?type=beta ."
Expand Down Expand Up @@ -671,13 +668,12 @@ match args |> List.map (fun s -> s.ToLowerInvariant ()) with
let haveTested = runDotnetTest haveCleaned
let haveGeneratedDocs = docs haveBuilt
runCi haveGeneratedDocs haveTested
| ["-t" ; "release"] ->
| ["-t" ; "ghrelease"] ->
let haveCleaned = doClean ()
let haveGeneratedAssemblyInfo = generateAssemblyInfo haveCleaned
let haveBuilt = build haveCleaned haveGeneratedAssemblyInfo
let haveTested = runDotnetTest haveCleaned
let haveGeneratedDocs = docs haveBuilt
release haveTested haveGeneratedDocs
gitHubRelease haveTested
| ["-t"; "build"] ->
let haveCleaned = doClean ()
let haveGeneratedAssemblyInfo = generateAssemblyInfo haveCleaned
Expand Down Expand Up @@ -718,4 +714,4 @@ match args |> List.map (fun s -> s.ToLowerInvariant ()) with
let args =
args
|> String.concat " "
failwith $"Unrecognised arguments. Supply '-t [RunTests,Clean,CI,Build,Tests,Release,Docs,WatchDocs,ReleaseDocs,NugetPack,NugetPush,BuildVersion,AssemblyInfo]'. Unrecognised args were: %s{args}"
failwith $"Unrecognised arguments. Supply '-t [RunTests,Clean,CI,Build,Tests,GHRelease,Docs,WatchDocs,ReleaseDocs,NugetPack,NugetPush,BuildVersion,AssemblyInfo]'. Unrecognised args were: %s{args}"

0 comments on commit 21a7ccd

Please sign in to comment.