-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.yml
60 lines (47 loc) · 1.37 KB
/
build.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
55
56
57
58
59
60
parameters:
name: ''
pool: ''
nugetVersion: 4.6.2
sdkVersion: 2.2.102
artifactName: ''
jobs:
- job: ${{ parameters.name }}
pool: ${{ parameters.pool }}
steps:
- task: NuGetToolInstaller@0
displayName: 'Use NuGet'
inputs:
versionSpec: ${{ parameters.nugetVersion }}
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core'
inputs:
version: ${{ parameters.sdkVersion }}
- task: PowerShell@2
inputs:
filePath: build_and_tests.ps1
workingDirectory: ./
arguments: Debug
displayName: 'restore & build Debug'
- task: PowerShell@2
inputs:
filePath: build_and_tests.ps1
workingDirectory: ./
arguments: Release
displayName: 'restore & build Release'
# - task: ArchiveFiles@2
# displayName: 'Archive $(Build.SourcesDirectory)'
# inputs:
# rootFolderOrFile: '$(Build.SourcesDirectory)'
# archiveFile: ${{ parameters.artifactFileName }}
# - task: PowerShell@2
# inputs:
# targetType: 'inline'
# script: 'dir'
# workingDirectory: $(Build.SourcesDirectory)/drop/Release
# displayName: 'Output of Filesystem'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: NuGet Packages'
inputs:
PathtoPublish: $(Build.SourcesDirectory)/drop/Release/
artifactType: container
ArtifactName: ${{parameters.artifactName}}