forked from shinyorg/shiny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
48 lines (40 loc) · 1.1 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
resources:
- repo: self
pool:
name: Azure Pipelines
demands: msbuild
variables:
BuildConfiguration: 'Release'
trigger:
batch: true
branches:
include: [ master, dev ]
paths:
include: [ src ]
pr:
autoCancel: true
branches:
include: [ master, dev ]
paths:
include: [ src ]
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core SDK 3.x'
inputs:
version: 3.1.x
- task: MSBuild@1
displayName: 'Build & Pack'
inputs:
solution: 'Build.sln'
msbuildArchitecture: 'x64'
configuration: 'Release'
msbuildArguments: '/t:restore;build;pack /p:PackageVersion=$(Build.BuildNumber)-beta /p:PackageOutputPath=$(build.artifactstagingdirectory)/public /p:AssemblyFileVersion=$(Build.BuildNumber) /p:JavaSdkDirectory="$(JAVA_HOME)/"'
#1.0.0$(rev:.r)
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory) '
inputs:
SourceFolder: '$(build.sourcesdirectory)'
Contents: '**\bin\$(BuildConfiguration)\**\*.nupkg'
TargetFolder: '$(build.artifactstagingdirectory) '
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'