Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a github action to release artifacts at runtime #78

Closed
Prev Previous commit
Next Next commit
changes
  • Loading branch information
devashish2024 committed Sep 15, 2024
commit 2c12a60b0f2dd8d05f5fb1c413790fdb79be81dc
31 changes: 24 additions & 7 deletions .github/workflows/produceJars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,32 @@ jobs:

strategy:
matrix:
minecraft-version: [ "1.19.3+build.5", "1.20+build.1", "1.21+build.2" ]
minecraft-version: [
"1.19+build.4",
"1.19.1+build.6",
"1.19.2+build.28",
"1.19.3+build.5",
"1.19.4+build.2",
"1.20+build.1",
"1.20.1+build.10",
"1.20.2+build.4",
"1.20.3+build.1",
"1.20.4+build.3",
"1.20.5+build.1",
"1.20.6+build.3",
"1.21+build.9",
"1.21.1+build.3"
]

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
java-version: '21'

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
Expand All @@ -35,8 +50,10 @@ jobs:
- name: Build Mod
run: ./gradlew build

- name: Rename and Upload JAR Artifact
run: mv build/libs/*.jar build/libs/ClickCrystals-${{ matrix.minecraft-version }}.jar
- name: Upload JAR Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mod-jar-${{ matrix.minecraft-version }}
path: build/libs/*.jar
name: ClickCrystals-${{ matrix.minecraft-version }}.jar
path: build/libs/ClickCrystals-${{ matrix.minecraft-version }}.jar