Skip to content

Commit

Permalink
Change database package creation to using dotnet cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaksn committed Nov 7, 2024
1 parent 3a3751f commit 0bbad61
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build.githubactions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,17 @@ function Pack {
}
}
if ($NuspecFilePath -Like "*.nuspec" -and $null -ne $PackageName){
nuget pack $NuspecFilePath -OutputDirectory $packageOutput -Version $version -Properties configuration=$Configuration -Properties id=$PackageName -NoPackageAnalysis -NoDefaultExcludes
}
$params = @{
PackageDefinitionFile = $NuspecFilePath
Version = $version
Properties = @{
configuration = $Configuration
id = $PackageName
}
OutputDirectory = $packageOutput
}

New-Package @params | Out-Host }
if ([string]::IsNullOrWhiteSpace($NuspecFilePath) -and $null -ne $PackageName){
Invoke-Execute {
dotnet pack $ProjectFile -c $Configuration --output $packageOutput --no-build --no-restore --verbosity normal -p:VersionPrefix=$version -p:NoWarn=NU5123 -p:PackageId=$PackageName
Expand Down

0 comments on commit 0bbad61

Please sign in to comment.