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)
1616$buildSuffix = @ { $true = " $ ( $suffix ) -$ ( $commitHash ) " ; $false = " $ ( $branch ) -$ ( $commitHash ) " }[$suffix -ne " " ]
1717
1818echo " build: Package version suffix is $suffix "
19- echo " build: Build version suffix is $buildSuffix "
19+ echo " build: Build version suffix is $buildSuffix "
2020
2121foreach ($src in ls src/* ) {
2222 Push-Location $src
2323
2424 echo " build: Packaging project in $src "
2525
2626 & 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 }
2935
3036 Pop-Location
3137}
You can’t perform that action at this time.
0 commit comments