Files
nuchat/scripts/release.sh
Fergus Molloy 4b888e7fda
Some checks failed
Backend Actions / build (push) Failing after 50s
Backend Actions / check (push) Successful in 1m40s
Backend Actions / test (push) Successful in 2m20s
add scripts for manually packaging and releasing
2025-07-25 16:09:34 +01:00

26 lines
500 B
Bash
Executable File

#!/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\""