Compare commits
16 Commits
szar-26.3.
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 73a172c9bd | |||
| 98f01f61c4 | |||
| 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"
|
||||
exit 1
|
||||
fi
|
||||
JAR="build/libs/${NAME}-${VERSION}.jar"
|
||||
JAR="${NAME}-${VERSION}.jar"
|
||||
echo "NAME=$NAME" >> $GITEA_ENV
|
||||
echo "VERSION=$VERSION" >> $GITEA_ENV
|
||||
echo "JAR=$JAR" >> $GITEA_ENV
|
||||
@@ -131,13 +131,18 @@ jobs:
|
||||
|
||||
- name: Upload the mod JAR
|
||||
run: |
|
||||
if [ ! -f "$JAR" ]; then
|
||||
echo "Error: JAR not found: $JAR"
|
||||
# Find the largest JAR file (the main mod file is 120 MiB, others are KiB)
|
||||
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
|
||||
fi
|
||||
|
||||
echo "Uploading largest file: $(basename $JAR_FILE)"
|
||||
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
|
||||
-H "Content-Type: application/java-archive" \
|
||||
--data-binary @"$JAR" \
|
||||
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${RELEASE_ID}/assets?name=$(basename $JAR)"
|
||||
--data-binary @"$JAR_FILE" \
|
||||
"${{ 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