no longer delete existing assets

we now have both aarch64/x86_64 overwriting each other
This commit is contained in:
Jörg Thalheim 2023-11-02 12:42:50 +01:00
parent 913fba8fbe
commit 6c43b7016d

View file

@ -45,13 +45,6 @@ main() {
gh release create --title "$tag (build $(date +"%Y-%m-%d"))" "$tag"
fi
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 "$@"