From 342a09355b1f650d70d45e485c4d504f9eea0c96 Mon Sep 17 00:00:00 2001 From: rust2 Date: Fri, 14 Jun 2024 20:10:41 +0500 Subject: [PATCH] Figuring out how to upload multiple artifacts v2 --- .github/workflows/build_artifacts.yml | 34 +++++++++------------------ 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build_artifacts.yml b/.github/workflows/build_artifacts.yml index 12aabae6..5066e14e 100644 --- a/.github/workflows/build_artifacts.yml +++ b/.github/workflows/build_artifacts.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Do checkout (whatever that means) - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup JDK uses: actions/setup-java@v3 @@ -33,32 +33,20 @@ jobs: ./gradlew desktop:dist ./gradlew desktopLwjgl3:dist -# - name: Upload debug APK -# uses: actions/upload-artifact@v3 -# with: -# name: app-debug.apk -# path: android/build/outputs/apk/debug/android-debug.apk - -# - name: Upload lwjgl2 dist -# uses: actions/upload-artifact@v3 -# with: -# name: app-desktopLwjgl2.jar -# path: desktop/build/libs/desktop-1.0.jar - -# - name: Upload lwjgl3 dist -# uses: actions/upload-artifact@v3 -# with: -# name: app-desktopLwjgl3.jar -# path: desktopLwjgl3/build/libs/desktopLwjgl3-1.0.jar - - - name: Upload these artifacts - uses: actions/upload-artifact@v4 + - name: Upload debug APK + uses: actions/upload-artifact@v3 with: name: app-debug.apk path: android/build/outputs/apk/debug/android-debug.apk + + - name: Upload lwjgl2 dist + uses: actions/upload-artifact@v3 with: name: app-desktopLwjgl2.jar - path: desktop/build/libs/desktop-*.jar + path: desktop/build/libs/desktop-1.0.jar + + - name: Upload lwjgl3 dist + uses: actions/upload-artifact@v3 with: name: app-desktopLwjgl3.jar - path: desktopLwjgl3/build/libs/desktopLwjgl3-*.jar + path: desktopLwjgl3/build/libs/desktopLwjgl3-1.0.jar