-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from onovotny/consolidate
consolidate build scripts
- Loading branch information
Showing
6 changed files
with
46 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
trigger: | ||
- master | ||
- rel/* | ||
|
||
queue: Hosted VS2017 | ||
|
||
variables: | ||
BuildConfiguration: Release | ||
|
||
steps: | ||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: custom | ||
custom: tool | ||
arguments: install --tool-path . nbgv | ||
displayName: Install NBGV tool | ||
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) | ||
|
||
- script: nbgv cloud | ||
displayName: Set Version | ||
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) | ||
|
||
- task: VSBuild@1 | ||
inputs: | ||
solution: .\Zeroconf\Zeroconf.csproj | ||
configuration: $(BuildConfiguration) | ||
msbuildArgs: '/restore /m /t:Pack /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)\Packages' | ||
displayName: Build | ||
|
||
- task: PowerShell@2 | ||
displayName: Authenticode Sign artifacts | ||
inputs: | ||
filePath: scripts/Sign-Package.ps1 | ||
env: | ||
SignClientUser: $(SignClientUser) | ||
SignClientSecret: $(SignClientSecret) | ||
ArtifactDirectory: $(Build.ArtifactStagingDirectory)\Packages | ||
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], ''))) | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: Publish Package Artifacts | ||
inputs: | ||
pathToPublish: $(Build.ArtifactStagingDirectory)\Packages | ||
artifactType: container | ||
artifactName: Packages | ||
condition: eq(variables['system.pullrequest.isfork'], false) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.