mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-28 19:39:22 +00:00
1.21 (#238)
--------- Co-authored-by: Lumine1909 <133463833+Lumine1909@users.noreply.github.com> Co-authored-by: LittleChest <81231195+LittleChest@users.noreply.github.com>
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get JDK 17
|
||||
- name: Get JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: "21"
|
||||
|
||||
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@@ -12,9 +12,7 @@ jobs:
|
||||
steps:
|
||||
- name: Get repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get JDK 17
|
||||
- name: Get JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: "21"
|
||||
@@ -29,18 +27,19 @@ jobs:
|
||||
run: |
|
||||
git config --global user.email "ci@leavesmc.org"
|
||||
git config --global user.name "LeavesMC CI"
|
||||
- name: Get Build Number
|
||||
run: bash scripts/GetBuildNumber.sh
|
||||
- name: Apply Patches
|
||||
run: ./gradlew applyPatches
|
||||
- name: Create Leavesclip Jar
|
||||
run: ./gradlew createMojmapLeavesclipJar
|
||||
env:
|
||||
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
|
||||
- name: Get Release Info
|
||||
run: sh scripts/GetReleaseInfo.sh
|
||||
env:
|
||||
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
|
||||
- name: Move Jar
|
||||
run: |
|
||||
prop() {
|
||||
grep "${1}" gradle.properties | cut -d'=' -f2 | sed 's/\r//'
|
||||
}
|
||||
|
||||
jarName="leaves-$(prop mcVersion).jar"
|
||||
mv build/libs/Leaves-leavesclip-"$(prop version)"-mojmap.jar "$jarName"
|
||||
echo "jar=$jarName" >> "$GITHUB_ENV"
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user