Skip to content

Commit f646486

Browse files
Update actions
1 parent bf3acdd commit f646486

File tree

5 files changed

+32
-18
lines changed

5 files changed

+32
-18
lines changed

.github/workflows/BuildTest.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,33 @@ jobs:
3939
runs-on: ubuntu-latest
4040

4141
steps:
42-
- uses: actions/checkout@v4.2.2
42+
- uses: actions/checkout@v6.0.0
4343
with:
4444
fetch-tags: true
4545
fetch-depth: 0
4646

4747
- name: Set up JDK 21
48-
uses: actions/setup-java@v4.7.1
48+
uses: actions/setup-java@v5.0.0
4949
with:
5050
java-version: '21'
5151
distribution: 'temurin'
5252

53+
- name: Setup Gradle
54+
uses: gradle/actions/setup-gradle@v5
55+
5356
- name: Get branch name
5457
id: branch-names
55-
uses: tj-actions/branch-names@v9
58+
uses: tj-actions/branch-names@v9.0.2
5659

5760
- name: Fix Gradle permission
5861
run: chmod +x ./gradlew
62+
63+
- name: Dry run
64+
run: ./gradlew -Prun_number=${{ github.run_number }}
5965

6066
- name: Setup Forge env
6167
run: ./gradlew setup -Prun_number=${{ github.run_number }}
68+
6269
- name: Stop Gradle daemon
6370
run: ./gradlew --stop
6471

@@ -69,7 +76,7 @@ jobs:
6976
run: echo "CLEANROOM_VERSION=$(cat version.txt)" >> $GITHUB_ENV
7077

7178
- name: setup python
72-
uses: actions/setup-python@v5.6.0
79+
uses: actions/setup-python@v6.1.0
7380
with:
7481
python-version: '3.13'
7582

@@ -85,19 +92,19 @@ jobs:
8592
run: cp script/MMC-Builder/build/CleanroomMMC.zip ./projects/cleanroom/build/libs/Cleanroom-MMC-instance-${{ env.CLEANROOM_VERSION }}.zip
8693

8794
- name: Upload Universal Jar
88-
uses: actions/upload-artifact@v4.6.2
95+
uses: actions/upload-artifact@v5.0.0
8996
with:
9097
name: universal-jar-${{ env.CLEANROOM_VERSION }}
9198
path: projects/cleanroom/build/libs/*-universal.jar
9299

93100
- name: Upload Installer Jar
94-
uses: actions/upload-artifact@v4.6.2
101+
uses: actions/upload-artifact@v5.0.0
95102
with:
96103
name: installer-jar-${{ env.CLEANROOM_VERSION }}
97104
path: projects/cleanroom/build/libs/*-installer.jar
98105

99106
- name: Upload MMC pack zip
100-
uses: actions/upload-artifact@v4.6.2
107+
uses: actions/upload-artifact@v5.0.0
101108
with:
102109
name: mmc-pack-zip-${{ env.CLEANROOM_VERSION }}
103110
path: projects/cleanroom/build/libs/*.zip

.github/workflows/Publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,25 @@ jobs:
1010
permissions:
1111
contents: write
1212
steps:
13-
- uses: actions/checkout@v4.2.2
13+
- uses: actions/checkout@v6.0.0
1414
with:
1515
fetch-tags: true
1616
fetch-depth: 0
1717

1818
- name: Set up JDK 21
19-
uses: actions/setup-java@v4.7.1
19+
uses: actions/setup-java@v5.0.0
2020
with:
2121
java-version: '21'
2222
distribution: 'temurin'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v5
2326

2427
- name: Fix Gradle permission
2528
run: chmod +x ./gradlew
29+
30+
- name: Dry run
31+
run: ./gradlew -Prun_number=${{ github.run_number }}
2632

2733
- name: Setup Forge env
2834
run: ./gradlew setup -Prun_number=${{ github.run_number }}

.github/workflows/Release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,25 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15-
- uses: actions/checkout@v4.2.2
15+
- uses: actions/checkout@v6.0.0
1616
with:
1717
fetch-tags: true
1818
fetch-depth: 0
1919

2020
- name: Set up JDK 21
21-
uses: actions/setup-java@v4.7.1
21+
uses: actions/setup-java@v5.0.0
2222
with:
2323
java-version: '21'
2424
distribution: 'temurin'
25+
26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@v5
2528

2629
- name: Fix Gradle permission
2730
run: chmod +x ./gradlew
31+
32+
- name: Dry run
33+
run: ./gradlew -Prun_number=${{ github.run_number }}
2834

2935
- name: Setup Forge env
3036
run: ./gradlew setup -Prun_number=${{ github.run_number }} -Prelease=true
@@ -42,7 +48,7 @@ jobs:
4248
run: ./gradlew --stop
4349

4450
- name: setup python
45-
uses: actions/setup-python@v5.6.0
51+
uses: actions/setup-python@v6.1.0
4652
with:
4753
python-version: '3.13'
4854

@@ -65,7 +71,7 @@ jobs:
6571
rm projects/cleanroom/build/libs/cleanroom-${{ env.CLEANROOM_VERSION }}-userdev.jar
6672
rm projects/cleanroom/build/libs/cleanroom-${{ env.CLEANROOM_VERSION }}-userdev-temp.jar
6773
68-
- uses: ncipollo/release-action@v1.14.0
74+
- uses: ncipollo/release-action@v1.20.0
6975
with:
7076
artifacts: "projects/cleanroom/build/libs/*"
7177
generateReleaseNotes: true

projects/mcp/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11

22
def props = project.properties
3-
def details = versionDetails()
4-
def spec_version = details.lastTag
53

64
apply plugin: 'net.minecraftforge.gradle.mcp'
75

projects/minecraft/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import com.cleanroommc.gradle.helpers.ProjectConstants
22

33
def props = project.properties
4-
def details = versionDetails()
5-
def spec_version = details.lastTag
64

75
evaluationDependsOn(':mcp')
8-
apply plugin: 'eclipse'
96
apply plugin: 'net.minecraftforge.gradle.patcher'
107

118
repositories {

0 commit comments

Comments
 (0)