@@ -65,9 +65,9 @@ let watchDocsDir = temp </> "watch-docs"
65
65
let gitOwner = " fsprojects"
66
66
let gitRepoName = " FSharp.Control.R3"
67
67
68
- let gitHubRepoUrl = $" https://github.com/%s {gitOwner}/%s {gitRepoName}/ "
68
+ let gitHubRepoUrl = $" https://github.com/%s {gitOwner}/%s {gitRepoName}"
69
69
70
- let documentationRootUrl = $" https://%s {gitOwner}.github.io/%s {gitRepoName}/ "
70
+ let documentationRootUrl = $" https://%s {gitOwner}.github.io/%s {gitRepoName}"
71
71
72
72
let releaseBranch = " main"
73
73
let readme = " README.md"
@@ -190,7 +190,7 @@ module DocsTool =
190
190
Parameters =
191
191
Some [
192
192
// https://fsprojects.github.io/FSharp.Formatting/content.html#Templates-and-Substitutions
193
- " root" , quoted documentationRootUrl
193
+ " root" , quoted $ " { documentationRootUrl}/ "
194
194
" fsdocs-collection-name" , quoted productName
195
195
" fsdocs-repository-branch" , quoted releaseBranch
196
196
" fsdocs-package-version" , quoted latestEntry.NuGetVersion
@@ -200,7 +200,6 @@ module DocsTool =
200
200
Strict = Some true
201
201
}
202
202
203
-
204
203
let cleanDocsCache () = Fsdocs.cleanCache rootDirectory
205
204
206
205
let build ( configuration ) = Fsdocs.build fsDocsDotnetOptions ( fsDocsBuildParams configuration)
@@ -216,9 +215,8 @@ module DocsTool =
216
215
217
216
Fsdocs.watch fsDocsDotnetOptions ( fun p -> { p with BuildCommandParams = Some ( buildParams p.BuildCommandParams) })
218
217
219
- let allReleaseChecks () =
220
- failOnWrongBranch ()
221
- Changelog.failOnEmptyChangelog latestEntry
218
+ let allReleaseChecks () = failOnWrongBranch ()
219
+ //Changelog.failOnEmptyChangelog latestEntry
222
220
223
221
224
222
let failOnLocalBuild () =
@@ -501,13 +499,14 @@ let gitRelease _ =
501
499
502
500
let releaseNotesGitCommitFormat = latestEntry.ToString ()
503
501
504
- Git.Staging.stageFile " " " CHANGELOG.md" |> ignore
502
+ Git.Staging.stageFile " " ( rootDirectory </> " CHANGELOG.md" )
503
+ |> ignore
505
504
506
505
!!( rootDirectory </> " src/**/AssemblyInfo.fs" )
507
506
++ ( rootDirectory </> " tests/**/AssemblyInfo.fs" )
508
507
|> Seq.iter ( Git.Staging.stageFile " " >> ignore)
509
508
510
- let msg = sprintf " Bump version to %s \n\n %s " latestEntry.NuGetVersion releaseNotesGitCommitFormat
509
+ let msg = $ " Bump version to ` %s {latestEntry.NuGetVersion}` \n\n %s { releaseNotesGitCommitFormat} "
511
510
512
511
Git.Commit.exec " " msg
513
512
@@ -526,7 +525,7 @@ let githubRelease _ =
526
525
let token =
527
526
match githubToken with
528
527
| Some s -> s
529
- | _ -> failwith " please set the github_token environment variable to a github personal access token with repo access."
528
+ | _ -> failwith " please set the `GITHUB_TOKEN` environment variable to a github personal access token with repo access."
530
529
531
530
let files = !! distGlob
532
531
// Get release notes with properly-linked version number
@@ -664,6 +663,7 @@ let initTargets () =
664
663
==>! " Publish"
665
664
666
665
" DotnetRestore" =?> ( " CheckFormatCode" , isCI.Value)
666
+ ==> " GenerateAssemblyInfo"
667
667
==> " DotnetBuild"
668
668
==> " DotnetTest"
669
669
==> " DotnetPack"
0 commit comments