no longer delete existing assets
we now have both aarch64/x86_64 overwriting each other
This commit is contained in:
parent
913fba8fbe
commit
6c43b7016d
1 changed files with 0 additions and 7 deletions
|
@ -45,13 +45,6 @@ main() {
|
||||||
gh release create --title "$tag (build $(date +"%Y-%m-%d"))" "$tag"
|
gh release create --title "$tag (build $(date +"%Y-%m-%d"))" "$tag"
|
||||||
fi
|
fi
|
||||||
gh release upload --clobber "$tag" "${assets[@]}"
|
gh release upload --clobber "$tag" "${assets[@]}"
|
||||||
|
|
||||||
gh release view --json assets | jq -r ".assets | map(.name) | .[] | select(test(\"$arch\"))" >"$TMP/existing-assets"
|
|
||||||
|
|
||||||
for asset in "${assets[@]}"; do
|
|
||||||
basename "$asset" >>"$TMP/uploaded-assets"
|
|
||||||
done
|
|
||||||
sort "$TMP/uploaded-assets" "$TMP/existing-assets" | uniq -u | xargs --no-run-if-empty -I{} gh release delete-asset --yes "$tag" {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|
Loading…
Reference in a new issue