Skip to content

Commit

Permalink
resolves #1
Browse files Browse the repository at this point in the history
resolves #1 fully
  • Loading branch information
gynt committed Aug 15, 2024
1 parent 38c2a59 commit 7a493bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/create-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ $exists = ($releaseTags | Where-Object {$_ -eq "$tag"} ) -ne $null

if ($exists) {
Write-Output "Release already exists: $tag, overwriting files"
gh release upload --repo $REPO --clobber $tag "./build/store.yml" (Get-Item .\build\extensions\*.zip)
gh release upload --repo $REPO --clobber $tag "./build/store.yml" (Get-Item .\build\extensions\*.zip -ErrorAction Ignore)
} else {
Write-Output "Release does not already exist: $tag, uploading as new files"
gh release create --repo $REPO --target $branch $tag "./build/store.yml" (Get-Item .\build\extensions\*.zip) --title "Store for $branch" --notes "This release is generated by a script"
gh release create --repo $REPO --target $branch $tag "./build/store.yml" (Get-Item .\build\extensions\*.zip -ErrorAction Ignore) --title "Store for $branch" --notes "This release is generated by a script"
}

0 comments on commit 7a493bc

Please sign in to comment.