add scripts for manually packaging and releasing
All checks were successful
Backend Actions / check (push) Successful in 13s
Backend Actions / test (push) Successful in 50s
Backend Actions / build (push) Successful in 56s

This commit is contained in:
2025-07-25 15:52:01 +01:00
parent 7826018d61
commit 8dc55022b5
6 changed files with 61 additions and 100 deletions

25
scripts/release.sh Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
. ./scripts/environ.sh
check_tags
if [ -n "$TAG" ]; then
echo "Found tag $TAG"
RELEASE_VERSION=$(echo "$TAG" | sed 's/v//')
echo "Releasing $RELEASE_VERSION"
echo ""
else
exit 1
fi
package
if [ ! -f package.tar.zst ]; then
echo "failed to generate package"
exit 1
fi
curl -X PUT \
-H "Authroization: token $GITEA_TOKEN" \
--upload-file "$OUT_DIR$OUT_FILE" \
"https://git.molloy.xyz/api/packages/fergus-molloy/generic/$RELEASE_VERSION/nuchat.tar.zst"