should upload the jars individually now

This commit is contained in:
alexcrea 2025-06-14 12:06:23 +02:00
parent 4ab55b70b4
commit a44827c2a6
No known key found for this signature in database
GPG key ID: 027DD67D2D3280C5

View file

@ -47,12 +47,31 @@ jobs:
- name: Build with Gradle Wrapper - name: Build with Gradle Wrapper
run: ./gradlew build --parallel run: ./gradlew build --parallel
- name: Upload build artifacts # Get the names of the online and offline jars
- name: Get file name for online JAR of CustomAnvil # grep -v "offline" to exclude offline jar
run: |
ONLINE_JAR_NAME=$(ls build/libs/CustomAnvil-*.jar | grep -v "offline")
echo "online_jar_name=${ONLINE_JAR_NAME}" >> $GITHUB_ENV
- name: Get file name for offline JAR of CustomAnvil
run: |
OFFLINE_JAR_NAME=$(ls build/libs/CustomAnvil-*-offline.jar)
echo "offline_jar_name=${OFFLINE_JAR_NAME}" >> $GITHUB_ENV
# upload the named jars
- name: Upload online JAR artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Package name: ${{ env.online_jar_name }}
path: build/libs/* path: build/libs/${{ env.online_jar_name }}
- name: Upload offline JAR file
uses: actions/upload-artifact@v4
with:
name: ${{ env.online_jar_name }}
path: build/libs/${{ env.online_jar_name }}
# Finally, upload test result
- name: Summarize tests results - name: Summarize tests results
uses: jeantessier/test-summary-action@v1 uses: jeantessier/test-summary-action@v1
if: ${{ always() }} if: ${{ always() }}