Skip to content

Commit c712365

Browse files
committed
update build pipeline
1 parent d66ea18 commit c712365

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ jobs:
1515
strategy:
1616
matrix:
1717
include:
18-
- java: 21
18+
- java: 25
1919
branch: main
20+
minecraft_version: "26.1"
21+
fabric_version: "0.144.3+26.1"
22+
- java: 21
23+
branch: "1.21.11"
2024
minecraft_version: "1.21.11"
2125
fabric_version: "0.131.0+1.21.11"
2226
- java: 21
2327
branch: "1.21.10"
2428
minecraft_version: "1.21.10"
2529
fabric_version: "0.131.0+1.21.10"
26-
runs-on: ubuntu-22.04
30+
runs-on: ubuntu-latest
2731
steps:
2832
- name: checkout repository
2933
uses: actions/checkout@v4
@@ -68,7 +72,7 @@ jobs:
6872
[View on GitHub Releases](https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }})
6973
loaders: fabric
7074
game-versions: "${{ matrix.minecraft_version }}"
71-
java: "21"
75+
java: ${{ matrix.java }}
7276
version-type: release
7377

7478
files: |
@@ -81,14 +85,19 @@ jobs:
8185
publish-modrinth:
8286
needs: build
8387
if: startsWith(github.ref, 'refs/tags/')
84-
runs-on: ubuntu-22.04
88+
runs-on: ubuntu-latest
8589
strategy:
8690
matrix:
8791
include:
92+
- minecraft_version: "26.1"
93+
fabric_version: "0.144.3+26.1"
94+
java: 25
8895
- minecraft_version: "1.21.11"
8996
fabric_version: "0.131.0+1.21.11"
97+
java: 21
9098
- minecraft_version: "1.21.10"
9199
fabric_version: "0.131.0+1.21.10"
100+
java: 21
92101
steps:
93102
- name: Download artifacts
94103
uses: actions/download-artifact@v4
@@ -110,7 +119,7 @@ jobs:
110119
[View on GitHub Releases](https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }})
111120
loaders: fabric
112121
game-versions: "${{ matrix.minecraft_version }}"
113-
java: "21"
122+
java: "${{ matrix.java }}"
114123
version-type: release
115124

116125
files: |

0 commit comments

Comments
 (0)