Skip to content

Commit

Permalink
Fix GitHub artifacts (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zailer43 authored Sep 7, 2024
1 parent 75f5a68 commit 4499b3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand All @@ -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
Expand Down

0 comments on commit 4499b3d

Please sign in to comment.