Skip to content

Commit

Permalink
Merge branch 'release/1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
awright18 committed Apr 1, 2017
2 parents be5bac3 + 0563032 commit bcf448d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,19 @@ let nuspec = sprintf "%s.nuspec" projectName
let projectFileName = sprintf "./source/%s/%s.csproj" projectName projectName
let artifactsDir = "artifacts"
let projectGuid = "E8C6B039-E310-41FE-9B83-1E163739CD9A"
let copyright = "2016"
let copyright = DateTime.Now.Year.ToString()

//publish parameters
let nugetApiKey = getBuildParamOrDefault "apikey" ""
let publishUrl = getBuildParamOrDefault "packageUrl" ""
let publish = nugetApiKey <> "" && publishUrl <> ""

//version info
let mutable assemblyVersion = ""
let mutable nugetVersion = ""
let mutable informationalVersion = ""
let mutable majorMinorVersion = ""


//Targets
Target "Clean" (fun _ ->
CleanDirs [artifactsDir]
Expand Down Expand Up @@ -136,6 +141,9 @@ Target "CreatePackage" (fun _ ->
Copyright = copyright
OutputPath = nugetOutputDir
WorkingDir = "."
PublishUrl = publishUrl
AccessKey = nugetApiKey
Publish = publish
})
"AWright18.PipeTo.nuspec"
)
Expand Down
2 changes: 1 addition & 1 deletion ci_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ if errorlevel 1 (
exit /b %errorlevel%
)

"packages\FAKE\tools\Fake.exe" build.fsx target="CreatePackage"
"packages\FAKE\tools\Fake.exe" build.fsx target="CreatePackage" apikey=%apikey% packageUrl=%packageUrl%
pause

0 comments on commit bcf448d

Please sign in to comment.