use generic name for artefact that will get zipped anyway

This commit is contained in:
alexcrea 2025-06-14 16:26:25 +02:00
parent 80c6250cc2
commit 6480c6b4f8
No known key found for this signature in database
GPG key ID: 027DD67D2D3280C5

View file

@ -60,24 +60,21 @@ 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") echo "ONLINE_JAR_PATH=$(ls build/libs/CustomAnvil-*.jar | grep -v "offline")" >> $GITHUB_ENV
OFFLINE_JAR_PATH=$(ls build/libs/CustomAnvil-*-offline.jar) echo "OFFLINE_JAR_PATH=$(ls build/libs/CustomAnvil-*-offline.jar)" >> $GITHUB_ENV
echo "ONLINE_JAR_NAME=$(basename $ONLINE_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: ${{ env.ONLINE_JAR_NAME }} name: CustomAnvil.jar
path: build/libs/${{ env.ONLINE_JAR_NAME }} path: ${{ env.ONLINE_JAR_PATH }}
- name: Upload offline JAR file - name: Upload offline JAR file
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ env.OFFLINE_JAR_NAME }} name: CustomAnvil-offline.jar
path: build/libs/${{ env.OFFLINE_JAR_NAME }} path: ${{ env.OFFLINE_JAR_PATH }}
- name: Summarize tests results - name: Summarize tests results
uses: jeantessier/test-summary-action@v1 uses: jeantessier/test-summary-action@v1