|
# staged assets prepared for upload |
|
$stagedAssets = Get-ChildItem $stagingPath -Include *.json, *.bsi, *.bsr, *.gstz, *.catz -Recurse -File | Sort-Object -Property Name |
|
|
|
# upload assets (delete old ones with the same name first) |
|
$stagedAssets | ForEach-Object { |
But also consider whether that wouldn't mean users will get the catpkg but then fail with download of files.
Alternative? Upload previous release's catpkg as the first step, so that while we create and upload other assets, users are redirected to previous release's data.
Then we prioritize upload of everything except catpkg, which would be last and replace the placeholder uploaded at the beginning.
publish-catpkg/action.ps1
Lines 193 to 197 in 9ac644a
But also consider whether that wouldn't mean users will get the catpkg but then fail with download of files.
Alternative? Upload previous release's catpkg as the first step, so that while we create and upload other assets, users are redirected to previous release's data.
Then we prioritize upload of everything except catpkg, which would be last and replace the placeholder uploaded at the beginning.