This commit is contained in:
alexcrea 2025-06-15 04:42:56 +02:00
parent cb00ba3978
commit fd1267456c
No known key found for this signature in database
GPG key ID: 027DD67D2D3280C5

View file

@ -60,24 +60,24 @@ jobs:
# grep -v "offline" to exclude offline jar as the regex would catch it otherwise # grep -v "offline" to exclude offline jar as the regex would catch it otherwise
- name: Get file name for jars - name: Get file name for jars
run: | run: |
online_jar_path=$(ls build/libs/CustomAnvil-*.jar | grep -v "offline") ONLINE_JAR_PATH=$(ls build/libs/CustomAnvil-*.jar | grep -v "offline")
offline_jar_path=$(ls build/libs/CustomAnvil-*-offline.jar) OFFLINE_JAR_PATH=$(ls build/libs/CustomAnvil-*-offline.jar)
echo "ONLINE_JAR_PATH=${online_jar_path}" >> $GITHUB_ENV echo "ONLINE_JAR_NAME=$(basename $ONLINE_JAR_PATH)" >> $GITHUB_ENV
echo "ONLINE_JAR_PATH=${offline_jar_path}" >> $GITHUB_ENV echo "OFFLINE_JAR_NAME=$(basename $OFFLINE_JAR_PATH)" >> $GITHUB_ENV
# upload the named jars # upload the named jars
- name: Upload online JAR artifact - name: Upload online JAR artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: CustomAnvil.jar name: CustomAnvil.jar
path: ${{ env.ONLINE_JAR_PATH }} path: build/libs/${{ env.ONLINE_JAR_NAME }}
- name: Upload offline JAR file - name: Upload offline JAR file
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: CustomAnvil-offline.jar name: CustomAnvil-offline.jar
path: ${{ env.OFFLINE_JAR_PATH }} path: build/libs/${{ env.OFFLINE_JAR_NAME }}
- name: Summarize tests results - name: Summarize tests results
uses: jeantessier/test-summary-action@v1 uses: jeantessier/test-summary-action@v1