mirror of
https://github.com/SFML/CSFML.git
synced 2025-10-19 20:35:25 +08:00

- Add officially supported RID for Linux and macOS - Ensure reproducible builds with fixed image versions - Add additional dependencies - Add dirty workaround (for now) for macOS builds
29 lines
726 B
PowerShell
29 lines
726 B
PowerShell
Param(
|
|
[Parameter(Mandatory, Position = 0)]
|
|
[string]$APIKey
|
|
)
|
|
|
|
dotnet pack -c Release
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Error "Build failed"
|
|
exit 1
|
|
}
|
|
|
|
$count = 0
|
|
$packages = (Get-ChildItem */bin/Release/*.nupkg)
|
|
foreach ($package in $packages) {
|
|
Write-Progress "Pushing packages" -CurrentOperation "Pushing $($package.Name)" -PercentComplete (($count * 100.0) / $packages.Length)
|
|
|
|
dotnet nuget push -k $APIKey -s https://api.nuget.org/v3/index.json $package.FullName
|
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Error "Unable to push $($package.Name)"
|
|
exit 1
|
|
}
|
|
|
|
$count++
|
|
}
|
|
|
|
Write-Progress "Done" -Completed
|
|
Write-Output "Successfully pushed $count packages"
|