Skip to content

Commit

Permalink
Publish *.snupkg packages
Browse files Browse the repository at this point in the history
Closes #547
  • Loading branch information
nozzlegear committed Sep 11, 2020
1 parent 03ae16e commit 591fa42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/build.ps1
Expand Up @@ -68,11 +68,11 @@ $projects | % {
write-host "============================= PUSHING APPVEYOR ARTIFACTS ==========================="
# Gather all nuget packages and push them to AppVeyor artifacts
# Depending on the version of dotnet, the artifacts folder may either be at root level, or in each project's own folder
$packedPath = "./ShopifySharp*/$artifactsFolder/*.nupkg"
$packedPath = "./ShopifySharp*/$artifactsFolder/*.*nupkg"

if (! (test-path $packedPath))
{
$packedPath = "$artifactsFolder/*.nupkg"
$packedPath = "$artifactsFolder/*.*nupkg"

if (! (test-path $packedPath))
{
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.ps1
Expand Up @@ -33,7 +33,7 @@ foreach ($artifactName in $artifacts.keys) {
$artifact = $artifacts[$artifactName]
$artifactPath = $artifact.path

if ($artifactName -like "ShopifySharp.*.*.*-b*.nupkg" -or $artifactName -like "ShopifySharp.Experimental.*.*.*.b-.nupkg") {
if ($artifactName -like "ShopifySharp.*.*.*-b*.*nupkg" -or $artifactName -like "ShopifySharp.Experimental.*.*.*.b-.*nupkg") {
write-host -ForegroundColor "green" "Pushing $artifactName"
exec { & dotnet nuget push -k "$env:NUGET_API_KEY" -s "https://nuget.org" "$artifactPath" }
} else {
Expand Down

0 comments on commit 591fa42

Please sign in to comment.