9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 19:39:22 +00:00
---------

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:
violetc
2024-07-05 01:30:46 +08:00
committed by GitHub
parent e234432bd9
commit 4a69af351b
166 changed files with 2929 additions and 4289 deletions

View File

@@ -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"

View File

@@ -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: