ref: a62c56aa140220a0b35cc2c183e647c3a914f408
parent: 4b25c9c2681d916d666963f29a4203d3b4ba464f
author: penny <penny@limitedideas.org>
date: Tue Oct 21 15:15:33 EDT 2025
still just the release script
--- a/web/release.sh
+++ b/web/release.sh
@@ -5,7 +5,7 @@
key=$(cat ~/.helltoken)
hash=$(git rev-parse --short HEAD)
git rev-parse --short HEAD
-git tag $hash
+#git tag $hash
git push origin --tags
release_id=$(curl --retry 5 -X 'POST' \
@@ -20,12 +20,12 @@
}' | jq -r .id)
echo Release: $release_id
-if [ "$release_id" = "null" ] || [ -z ${release_id} ]; then+if [ "$release_id" = "null" ]; then
echo "Failed to create release"
exit
fi
-echo $release_id > release_id
+echo $hash > release_id
echo "Building Linux"
GOOS=linux GOARCH=amd64 go build -o ./downloads/linux/hell ../.
echo "Building Mac"
@@ -60,9 +60,14 @@
-F 'attachment=@./downloads/win/hell.exe'
echo "Upload Linux"
-curl --retry -X 'POST' \
+curl --retry 5 -X 'POST' \
"https://codeberg.org/api/v1/repos/penny64/hellclient/releases/$release_id/assets?name=hell_linux" \
-H 'accept: application/json' \
-H "Authorization: token $key" \
-H 'Content-Type: multipart/form-data' \
-F 'attachment=@./downloads/linux/hell'
+
+ ./render_homepage.sh
+ git add ../index.html
+ git commit -m "automatic commit/push, update download links"
+ git push
--
⑨