From 675f2b8bd382cd5a267677747c4f0e9ee23690de Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Wed, 12 Apr 2023 19:20:54 +0300 Subject: [PATCH] Try to overcome buggy 'gh release' --- bump-version.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bump-version.sh b/bump-version.sh index 8fe6190..1edc633 100755 --- a/bump-version.sh +++ b/bump-version.sh @@ -69,9 +69,12 @@ if [ -f VERSION ]; then ./result/bin/pistol --version | grep $INPUT_STRING gh release create v$INPUT_STRING --generate-notes \ "./result/bin/pistol#pistol-x86_64" \ - ./result/share/man/man1/pistol.1.gz \ - "$(nix build --print-out-paths --print-build-logs ".#pistol-static-aarch64")/bin/pistol#pistol.aarch64" \ - "$(nix build --print-out-paths --print-build-logs ".#pistol-static-armv7l")/bin/pistol#pistol.armv7l" + ./result/share/man/man1/pistol.1.gz + # NOTE: There seems to be a bug currently in gh release - I'm getting 404 from some reason + cp "$(nix build --print-out-paths --print-build-logs ".#pistol-static-aarch64")/bin/pistol" pistol-aarch64 + cp "$(nix build --print-out-paths --print-build-logs ".#pistol-static-armv7l")/bin/pistol" pistol-armv7l + gh release upload v$INPUT_STRING pistol-armvl + gh release upload v$INPUT_STRING pistol-aarch64 else echo -e "${WARNING_FLAG} Could not find a VERSION file." >&2 exit 1