Update .forgejo/workflows/release.yml

This commit is contained in:
root 2025-06-26 17:10:00 +01:00
parent c4ac52c535
commit b3e7810b5e

View file

@ -228,9 +228,10 @@ jobs:
echo "Created release ID: $RELEASE_ID"
# Upload artifact
JAR_FILE=$(ls target/resilient*.jar | head -n 1)
# NOTE: For safety, the artifact to upload is expected to be the EXACT $VERSION of this branch. If not, something is wrong.
JAR_FILE=$(ls target/resilient-$VERSION.jar | head -n 1)
echo "Attaching file : $JAR_FILE"
curl -X POST "$API/repos/$REPO/releases/$RELEASE_ID/assets?name=resilient.jar" \
curl -X POST "$API/repos/$REPO/releases/$RELEASE_ID/assets?name=resilient-$VERSION.jar" \
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
-H "Content-Type: application/java-archive" \
--data-binary @"$JAR_FILE"