forked from xerxesb/SpecFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yml
56 lines (40 loc) · 1.13 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
parameters:
name: ''
pool: ''
nugetVersion: 4.6.2
sdkVersion: 2.1.401
artifactFileName: ''
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.ps1
workingDirectory: ./
arguments: Debug
displayName: 'restore & build Debug'
- task: PowerShell@2
inputs:
filePath: build.ps1
workingDirectory: ./
arguments: Release
displayName: 'restore & build Release'
- task: ArchiveFiles@2
displayName: 'Archive $(Build.SourcesDirectory)'
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)'
archiveFile: ${{ parameters.artifactFileName }}
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: SpecFlow.CI-BuildResult'
inputs:
PathtoPublish: ${{ parameters.artifactFileName }}
ArtifactName: 'SpecFlow.CI-BuildResult'