From 4499b3d6c039f41445e3eb36acc773d3037521a7 Mon Sep 17 00:00:00 2001 From: Zailer43 <63565983+Zailer43@users.noreply.github.com> Date: Sat, 7 Sep 2024 14:43:30 -0300 Subject: [PATCH] Fix GitHub artifacts (#57) --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c23d8ae..d69f7463 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,9 @@ jobs: build: strategy: matrix: - # Use these Java versions + # Minecraft only supports one version because GitHub wants it, + # thank you very much (I don't understand how to get the index + # of a matrix in the artifacts, thank you for understanding) java: [ 21, # Current Java LTS & minimum supported by Minecraft ] @@ -33,7 +35,7 @@ jobs: - name: build run: ./gradlew build - name: capture build artifacts - if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS + if: ${{ runner.os == 'Linux' }} # Only upload artifacts built from one OS uses: actions/upload-artifact@v4 with: name: Artifacts