Skip to content

Commit 60a72bb

Browse files
Update version name and CI
1 parent 32db281 commit 60a72bb

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

.github/workflows/build.yml

+8-17
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,23 @@ on: [pull_request, push]
88

99
jobs:
1010
build:
11-
strategy:
12-
matrix:
13-
# Use these Java versions
14-
java: [
15-
17, # Current Java LTS & minimum supported by Minecraft
16-
]
17-
# and run on both Linux and Windows
18-
os: [ubuntu-20.04, windows-2022]
19-
runs-on: ${{ matrix.os }}
11+
runs-on: ubuntu-24.04
2012
steps:
2113
- name: checkout repository
22-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
2315
- name: validate gradle wrapper
24-
uses: gradle/wrapper-validation-action@v1
25-
- name: setup jdk ${{ matrix.java }}
26-
uses: actions/setup-java@v1
16+
uses: gradle/wrapper-validation-action@v2
17+
- name: setup jdk 21
18+
uses: actions/setup-java@v4
2719
with:
28-
java-version: ${{ matrix.java }}
20+
java-version: 21
21+
distribution: 'microsoft'
2922
- name: make gradle wrapper executable
30-
if: ${{ runner.os != 'Windows' }}
3123
run: chmod +x ./gradlew
3224
- name: build
3325
run: ./gradlew build
3426
- name: capture build artifacts
35-
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
36-
uses: actions/upload-artifact@v2
27+
uses: actions/upload-artifact@v4
3728
with:
3829
name: Artifacts
3930
path: build/libs/

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ plugins {
44
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
55
}
66

7-
version = project.mod_version
7+
version = project.mod_version + '+' + project.minecraft_version
88
group = project.maven_group
99

1010
base {
11-
archivesName = project.archives_base_name + '-' + project.minecraft_version
11+
archivesName = project.archives_base_name
1212
}
1313

1414
loom {

0 commit comments

Comments
 (0)