-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
45 lines (41 loc) · 949 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
variables:
- group: ApiKeys
trigger:
branches:
include:
- main
tags:
include:
- v*
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: 'ubuntu-latest'
steps:
- script: bash ./ci_build.sh
- publish: 'PublishOutput/'
artifact: NuGets
- task: PublishTestResults@2
condition: always()
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '**/TestResults/*.trx'
- stage: Deploy
jobs:
- deployment: NuGetDeploy
displayName: Push NuGet Packages
pool:
vmImage: 'Ubuntu-latest'
environment: 'live-nuget'
strategy:
runOnce:
deploy:
steps:
- download: current
patterns: '**/*.nupkg'
- script: |
dotnet nuget push --api-key $API_KEY --source "https://api.nuget.org/v3/index.json" $(Pipeline.Workspace)/**/*.nupkg
env:
API_KEY: $(NuGetOrgApiKey)