Skip to content

Commit 580a4d4

Browse files
authored
Merge pull request #12 from datalust/packaging-fix
Fix packaging regression caused by earlier build script migration
2 parents fc15b4f + 66468a2 commit 580a4d4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Build.ps1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,17 @@ try {
2828
Write-Output "build: Package version suffix is $suffix"
2929
Write-Output "build: Build version suffix is $buildSuffix"
3030

31-
& dotnet build -c Release --version-suffix=$buildSuffix /p:ContinuousIntegrationBuild=true
32-
if($LASTEXITCODE -ne 0) { throw "Build failed" }
33-
3431
foreach ($src in Get-ChildItem src/*) {
3532
Push-Location $src
3633

3734
Write-Output "build: Packaging project in $src"
3835

3936
if ($suffix) {
40-
& dotnet pack -c Release --no-build --no-restore -o ../../artifacts --version-suffix=$suffix
37+
& dotnet publish -c Release -o ./obj/publish --version-suffix=$buildSuffix /p:ContinuousIntegrationBuild=true
38+
& dotnet pack -c Release -o ../../artifacts --no-build --version-suffix=$suffix
4139
} else {
42-
& dotnet pack -c Release --no-build --no-restore -o ../../artifacts
40+
& dotnet publish -c Release -o ./obj/publish /p:ContinuousIntegrationBuild=true
41+
& dotnet pack -c Release -o ../../artifacts --no-build
4342
}
4443
if($LASTEXITCODE -ne 0) { throw "Packaging failed" }
4544

0 commit comments

Comments
 (0)