Compare commits
14 Commits
szar-26.3.
...
szar-26.4.
| Author | SHA1 | Date | |
|---|---|---|---|
| bcc90e5593 | |||
| b476d156dc | |||
| 6b355a1f47 | |||
| c79d223f7e | |||
| 790ebd2535 | |||
| 994d2b961b | |||
| 77f71be086 | |||
| 169e9eff08 | |||
| 5dcf4fc221 | |||
| 34b8fccf24 | |||
| 62ad19516b | |||
| c3eb514db7 | |||
| 4bc0779967 | |||
| ab32bc230e |
@@ -87,7 +87,7 @@ jobs:
|
|||||||
echo "Failed to read mod info"
|
echo "Failed to read mod info"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
JAR="build/libs/${NAME}-${VERSION}.jar"
|
JAR="${NAME}-${VERSION}.jar"
|
||||||
echo "NAME=$NAME" >> $GITEA_ENV
|
echo "NAME=$NAME" >> $GITEA_ENV
|
||||||
echo "VERSION=$VERSION" >> $GITEA_ENV
|
echo "VERSION=$VERSION" >> $GITEA_ENV
|
||||||
echo "JAR=$JAR" >> $GITEA_ENV
|
echo "JAR=$JAR" >> $GITEA_ENV
|
||||||
@@ -131,13 +131,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload the mod JAR
|
- name: Upload the mod JAR
|
||||||
run: |
|
run: |
|
||||||
if [ ! -f "$JAR" ]; then
|
# Find the largest JAR file (the main mod file is 120 MiB, others are KiB)
|
||||||
echo "Error: JAR not found: $JAR"
|
JAR_FILE=$(ls -S ./release-artifacts/*.jar | head -n 1)
|
||||||
|
|
||||||
|
if [ ! -f "$JAR_FILE" ]; then
|
||||||
|
echo "Error: Main JAR not found in ./release-artifacts/"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Uploading largest file: $(basename $JAR_FILE)"
|
||||||
|
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
|
||||||
-H "Content-Type: application/java-archive" \
|
-H "Content-Type: application/java-archive" \
|
||||||
--data-binary @"$JAR" \
|
--data-binary @"$JAR_FILE" \
|
||||||
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${RELEASE_ID}/assets?name=$(basename $JAR)"
|
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${RELEASE_ID}/assets?name=$(basename $JAR_FILE)"
|
||||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
build/
|
||||||
|
run/
|
||||||
|
.idea/
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user