@@ -32,7 +32,7 @@ open System.IO
3232// (used by attributes in AssemblyInfo, name of a NuGet package and directory in 'src')
3333let project = " src/FSharp.Control.AsyncSeq"
3434
35- // File system information
35+ // File system information
3636let solutionFile = " FSharp.Control.AsyncSeq.sln"
3737
3838let summary = " Asynchronous sequences for F#"
@@ -97,7 +97,7 @@ Target.create "Build" (fun _ ->
9797// --------------------------------------------------------------------------------------
9898// Run the unit tests using test runner
9999
100- Target.create " RunTests " ( fun _ ->
100+ Target.create " Test " ( fun _ ->
101101 solutionFile
102102 |> DotNet.test ( fun opts ->
103103 { opts with
@@ -112,13 +112,13 @@ Target.create "RunTests" (fun _ ->
112112// --------------------------------------------------------------------------------------
113113// Build a NuGet package
114114
115- Target.create " NuGet " ( fun _ ->
116-
115+ Target.create " Pack " ( fun _ ->
116+
117117 File.WriteAllText( " version.props" , versionPropsTemplate)
118118 DotNet.pack ( fun pack ->
119119 { pack with
120- OutputPath = Some artifactsDir
121- Configuration = configuration
120+ OutputPath = Some artifactsDir
121+ Configuration = configuration
122122 }) solutionFile
123123)
124124
@@ -127,34 +127,7 @@ Target.create "NuGet" (fun _ ->
127127
128128Target.create " GenerateDocs" ( fun _ ->
129129 Shell.cleanDir " .fsdocs"
130- DotNet.exec id " fsdocs" " build --clean --properties Configuration=Release" |> ignore
131- )
132-
133- // --------------------------------------------------------------------------------------
134- // Release
135-
136- Target.create " PublishNuget" ( fun _ ->
137- let source = " https://api.nuget.org/v3/index.json"
138- let apikey = Environment.environVar " NUGET_KEY"
139- for artifact in !! ( artifactsDir + " /*nupkg" ) do
140- if not ( artifact.Contains( " .symbols" )) then
141- let result = DotNet.exec id " nuget" ( sprintf " push -s %s -k %s %s " source apikey artifact)
142- if not result.OK then failwith " failed to push packages"
143- )
144- Target.create " ReleaseDocs" ( fun _ ->
145- Git.Repository.clone " " projectRepo " temp/gh-pages"
146- Git.Branches.checkoutBranch " temp/gh-pages" " gh-pages"
147- Shell.copyRecursive " output" " temp/gh-pages" true |> printfn " %A "
148- Git.CommandHelper.runSimpleGitCommand " temp/gh-pages" " add ." |> printfn " %s "
149- let cmd = sprintf """ commit -a -m "Update generated documentation for version %s """ release.NugetVersion
150- Git.CommandHelper.runSimpleGitCommand " temp/gh-pages" cmd |> printfn " %s "
151- Git.Branches.push " temp/gh-pages"
152- )
153-
154- Target.create " Release" ( fun _ ->
155- Git.Branches.tag " " release.NugetVersion
156- Git.Branches.pushTag " " projectRepo release.NugetVersion
157-
130+ DotNet.exec id " fsdocs" " build --clean --properties Configuration=Release --eval" |> ignore
158131)
159132
160133// --------------------------------------------------------------------------------------
@@ -164,16 +137,13 @@ Target.create "All" ignore
164137
165138" Clean"
166139 ==> " Build"
167- ==> " RunTests "
140+ ==> " Test "
168141 ==> " NuGet"
169- ==> " GenerateDocs"
170142 ==> " All"
171143
172- " NuGet" ==> " PublishNuget"
173- " GenerateDocs" ==> " ReleaseDocs"
174-
175- " PublishNuget"
176- ==> " ReleaseDocs"
177- ==> " Release"
144+ " Clean"
145+ ==> " Build"
146+ ==> " GenerateDocs"
147+ ==> " All"
178148
179149Target.runOrDefault " All"
0 commit comments