mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
should upload the jars individually now
This commit is contained in:
parent
4ab55b70b4
commit
a44827c2a6
1 changed files with 22 additions and 3 deletions
25
.github/workflows/gradle.yml
vendored
25
.github/workflows/gradle.yml
vendored
|
|
@ -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() }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue