-
Notifications
You must be signed in to change notification settings - Fork 9
/
publish.yml
37 lines (31 loc) · 948 Bytes
/
publish.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
trigger: none
pool:
name: 'FERRARI_AP01'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetAuthenticate@0
inputs:
forceReinstallCredentialProvider: true
- powershell: |
$file = Get-ChildItem -Path $pwd -Filter *without*.sln -Recurse
dotnet build $file.FullName | Write-Host
displayName: 'PowerShell Script'
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: '**\Riganti.Selenium.WithoutCoordinator.sln'
- task: VSBuild@1
displayName: 'Build solution **\Riganti.Selenium.WithoutCoordinator.sln'
inputs:
solution: '**\Riganti.Selenium.WithoutCoordinator.sln'
maximumCpuCount: true
- task: PowerShell@2
displayName: publish
inputs:
targetType: filePath
filePath: '$(System.DefaultWorkingDirectory)\src\tools\publish.ps1 '
arguments: '-source $(source) -key $(apikey)'
workingDirectory: 'src\tools'