add scripts for manually packaging and releasing
Some checks failed
Backend Actions / build (push) Failing after 50s
Backend Actions / check (push) Successful in 1m40s
Backend Actions / test (push) Successful in 2m20s

This commit is contained in:
2025-07-25 15:52:01 +01:00
parent 7826018d61
commit 4b888e7fda
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
echo "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\""