Skip to content

Commit 0b6c898

Browse files
authored
Create update to 1.21.7.yml
1 parent deb202f commit 0b6c898

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update to Minecraft 1.21.7 (Fabric) and Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
9+
jobs:
10+
update-and-build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '21'
20+
distribution: 'temurin'
21+
22+
- name: Update Minecraft and Fabric versions in gradle.properties
23+
run: |
24+
sed -i 's/minecraft_version=[^"]*/minecraft_version=1.21.7/g' gradle.properties
25+
sed -i 's/loader_version=[^"]*/loader_version=0.16.14/g' gradle.properties
26+
sed -i 's/fabric_version=[^"]*/fabric_version=0.129.0+1.21.7/g' gradle.properties
27+
28+
- name: Validate version update
29+
run: |
30+
grep 'minecraft_version=1.21.7' gradle.properties
31+
grep 'loader_version=0.16.14' gradle.properties
32+
grep 'fabric_version=0.129.0+1.21.7' gradle.properties
33+
34+
- name: Build with Gradle
35+
run: ./gradlew build
36+
37+
- name: Upload JAR Artifact
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: HorseStatsVanilla-1.21.7-fabric
41+
path: build/libs/*.jar

0 commit comments

Comments
 (0)