-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
54 lines (45 loc) · 1.29 KB
/
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
46
47
48
49
50
51
52
53
54
trigger:
branches:
include:
- '*'
tags:
include:
- '*'
variables:
- group: azure-repos-sync
jobs:
- job: Build
displayName: "Publish Sdk Packages"
pool:
vmImage: ubuntu-latest
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'custom'
custom: 'pack'
arguments: '-c Release -p:Version=0.0.$(Build.BuildId) -o $(Build.ArtifactStagingDirectory)'
displayName: 'Package for NuGet'
- task: NuGetAuthenticate@0
displayName: 'Authenticate with NuGet Feed'
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '5f8d36de-7004-4c36-a8b5-8a4bda9eb598/c2949ad7-bda3-4f23-a41b-3109c9419cb7'
allowPackageConflicts: true
displayName: 'Push to NuGet Feed'
- job: Sync
displayName: "Sync with Azure Repos"
pool:
vmImage: ubuntu-latest
steps:
- task: CmdLine@2
inputs:
script: |
git remote add target https://tlylz:$(SYNC_PAT)@dev.azure.com/tlylz/namomo/_git/reactor
git checkout $(Build.SourceBranchName)
git pull target $(Build.SourceBranchName) --tags
git push target --all
git push target HEAD:$(Build.SourceBranchName) --tags
displayName: 'Sync via Git Tools'