Skip to content

Commit

Permalink
Figuring out how to upload multiple artifacts v6
Browse files Browse the repository at this point in the history
  • Loading branch information
rust2 committed Jun 14, 2024
1 parent 95bac49 commit b581d17
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,17 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Initially, I wanted to use it to tweak actions/upload-artifact versions from one place
# but I also pulled versions of every action here
env:
Version_Checkout: v4
Version_Setup_java: v4
Version_Upload_artifact: v4

# TODO pull version of identical actions to a variable to tweak it from one place
jobs:
build_everything:
name: Build everything
runs-on: ubuntu-latest
steps:
- name: Do checkout (whatever that means)
uses: actions/checkout@${{ Version_Checkout }}
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@${{ Version_Setup_java }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
Expand All @@ -41,19 +35,19 @@ jobs:
./gradlew desktopLwjgl3:dist
- name: Upload debug APK
uses: actions/upload-artifact@${{ Version_Upload_artifact }}
uses: actions/upload-artifact@v4
with:
name: app-debug.apk
path: android/build/outputs/apk/debug/android-debug.apk

- name: Upload lwjgl2 dist
uses: actions/upload-artifact@${{ Version_Upload_artifact }}
uses: actions/upload-artifact@v4
with:
name: app-desktopLwjgl2.jar
path: desktop/build/libs/desktop-1.0.jar

- name: Upload lwjgl3 dist
uses: actions/upload-artifact@${{ Version_Upload_artifact }}
uses: actions/upload-artifact@v4
with:
name: app-desktopLwjgl3.jar
path: desktopLwjgl3/build/libs/desktopLwjgl3-1.0.jar

0 comments on commit b581d17

Please sign in to comment.