-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.fsx
More file actions
39 lines (32 loc) · 732 Bytes
/
publish.fsx
File metadata and controls
39 lines (32 loc) · 732 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
31
32
33
34
35
36
37
38
39
open Fake.DotNet
#load ".fake/build.fsx/intellisense.fsx"
open Fake.Core
open Fake.IO
open Fake.IO.Globbing.Operators
open Fake.Core.TargetOperators
let publishConfig (config:DotNet.PublishOptions) =
{
config with Runtime = Some("linux-arm")
}
Target.create "Clean" (fun _ ->
!! "src/**/bin"
++ "src/**/obj"
++ "sample/bin"
++ "sample/obj"
|> Shell.cleanDirs
)
Target.create "Build" (fun _ ->
!! "src/**/*.*proj"
++ "sample/*.*proj"
|> Seq.iter (DotNet.build id)
)
Target.create "PublishSample" (fun _ ->
!! "sample/*.*proj"
|> Seq.iter (DotNet.publish publishConfig)
)
Target.create "All" ignore
"Clean"
==> "Build"
==> "PublishSample"
==> "All"
Target.runOrDefault "All"