File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,22 @@ $commitHash = $(git rev-parse --short HEAD)
16
16
$buildSuffix = @ { $true = " $ ( $suffix ) -$ ( $commitHash ) " ; $false = " $ ( $branch ) -$ ( $commitHash ) " }[$suffix -ne " " ]
17
17
18
18
echo " build: Package version suffix is $suffix "
19
- echo " build: Build version suffix is $buildSuffix "
19
+ echo " build: Build version suffix is $buildSuffix "
20
20
21
21
foreach ($src in ls src/* ) {
22
22
Push-Location $src
23
23
24
24
echo " build: Packaging project in $src "
25
25
26
26
& dotnet build - c Release -- version- suffix= $buildSuffix
27
- & dotnet pack - c Release - o ..\..\artifacts -- version- suffix= $suffix -- no- build
28
- if ($LASTEXITCODE -ne 0 ) { exit 1 }
27
+ if ($suffix -ne " " ) {
28
+ & dotnet pack - c Release - o ..\..\artifacts -- version- suffix= $suffix -- no- build
29
+ }
30
+ else {
31
+ & dotnet pack - c Release - o ..\..\artifacts -- no- build
32
+ }
33
+
34
+ if ($LASTEXITCODE -ne 0 ) { exit 1 }
29
35
30
36
Pop-Location
31
37
}
You can’t perform that action at this time.
0 commit comments