-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathazure-pipelines.yml
28 lines (23 loc) · 928 Bytes
/
azure-pipelines.yml
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
resources:
repositories:
- repository: self
checkoutOptions:
submodules: true
pool:
vmImage: windows-2019
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
- script: |
dotnet restore
dotnet build --output $(Build.ArtifactStagingDirectory)
displayName: Build
- script: |
dotnet pack --output $(Build.ArtifactStagingDirectory) -c Release /p:Version=1.0.$(Build.BuildId)
dotnet nuget push $(Build.ArtifactStagingDirectory)\AutoFinance.Broker.1.0.$(Build.BuildId).nupkg --source https://www.nuget.org --api-key $(BrokerNugetApiKey)
dotnet nuget push $(Build.ArtifactStagingDirectory)\InteractiveBrokers.TwsClient.1.0.$(Build.BuildId).nupkg --source https://www.nuget.org --api-key $(TwsClientNugetApiKey)
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: Push nuget