Skip to content

Commit

Permalink
Try to overcome buggy 'gh release'
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Apr 12, 2023
1 parent 81dfd4e commit 675f2b8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 675f2b8

Please sign in to comment.