Merge pull request 'Release workflow: upload through the public URL again; smaller jars' (#14) from release-public-url into master
Release / build (release) Successful in 18m36s

This commit was merged in pull request #14.
This commit is contained in:
2026-09-25 16:36:40 +00:00
2 changed files with 13 additions and 4 deletions
+12 -3
View File
@@ -21,9 +21,9 @@ permissions:
env:
TAG: ${{ github.event.release.tag_name || inputs.tag }}
# Gitea's internal address. Uploads bypass the Cloudflare tunnel, which
# rejects request bodies as large as the mod jars (413).
GITEA_API: http://gitea:3000/api/v1
# The public address. Uploads go through the Cloudflare tunnel, which caps
# request bodies at 100 MB, so each mod jar must stay under that.
GITEA_API: ${{ github.server_url }}/api/v1
jobs:
build:
@@ -69,6 +69,15 @@ jobs:
exit 1
fi
# Cloudflare in front of the server rejects uploads of 100 MB or more.
for jar in "${jars[@]}"; do
size=$(stat -c%s "$jar")
if [ "$size" -ge 100000000 ]; then
echo "::error::$(basename "$jar") is $((size / 1000000)) MB; uploads must be under 100 MB. Check what's taking space with: unzip -l \"$jar\" | sort -n" >&2
exit 1
fi
done
# Look the release up by tag so manual runs work too.
RELEASE_ID="$(curl --fail-with-body -sS -H "Authorization: token $TOKEN" \
"$GITEA_API/repos/$REPO/releases/tags/$TAG" \
+1 -1
Submodule common updated: 98da42992e...5df42e2b7c