Skip to content

Commit 9c9060c

Browse files
committed
Fix pipeline signed and unsigned
1 parent 9a0750f commit 9c9060c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

azure-pipelines.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,6 @@ stages:
7878
Src\Nlog.Targets.Stackify\*.csproj
7979
Src\NLog.Web.Stackify\*.csproj
8080
Src\StackifyLib.StackifyTraceListener\*.csproj
81-
- ${{ if eq(parameters['Build StackifyLib'], true) }}:
82-
- task: DotNetCoreCLI@2
83-
displayName: dotnet build
84-
inputs:
85-
projects: |
86-
Src\StackifyLib\*.csproj
87-
arguments: '-c $(BuildConfiguration)'
88-
- task: DotNetCoreCLI@2
89-
displayName: dotnet pack unsigned stackify lib
90-
inputs:
91-
command: pack
92-
searchPatternPack: Src\StackifyLib\*.csproj;
93-
nobuild: true
9481
- ${{ if eq(parameters['Build StackifyLib Signed'], true) }}:
9582
- task: DownloadSecureFile@1
9683
name: SNK
@@ -189,6 +176,19 @@ stages:
189176
targetType: inline
190177
script: >
191178
(Get-Content -path Src\StackifyLib\StackifyLib.csproj -Raw) -replace '<PackageId>StackifyLib.signed</PackageId>','<PackageId>StackifyLib</PackageId>' | Set-Content -Path Src\StackifyLib\StackifyLib.csproj
179+
- ${{ if eq(parameters['Build StackifyLib'], true) }}:
180+
- task: DotNetCoreCLI@2
181+
displayName: dotnet build
182+
inputs:
183+
projects: |
184+
Src\StackifyLib\*.csproj
185+
arguments: '-c $(BuildConfiguration)'
186+
- task: DotNetCoreCLI@2
187+
displayName: dotnet pack unsigned stackify lib
188+
inputs:
189+
command: pack
190+
searchPatternPack: Src\StackifyLib\*.csproj;
191+
nobuild: true
192192
- ${{ if eq(parameters['Build StackifyLib.AspNetCore'], true) }}:
193193
- template: templates/build-and-pack.yml
194194
parameters:

0 commit comments

Comments
 (0)