9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2026-01-04 15:41:40 +00:00

Update changes from ver/1.21.5 branch

This commit is contained in:
Dreeam
2025-06-22 14:46:58 +08:00
2 changed files with 8 additions and 8 deletions

View File

@@ -13,12 +13,12 @@ jobs:
GRADLE_MEMORY: "-Xmx4g -XX:MaxMetaspaceSize=2g"
steps:
- name: Checkout repository
uses: actions/checkout@main
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Gradle Cache
uses: useblacksmith/cache@v5
uses: useblacksmith/cache@v5.0.2
with:
path: |
~/.gradle/caches/modules-2
@@ -40,7 +40,7 @@ jobs:
find ~/.gradle/caches -name "*.lock" -type f -delete || echo "No lock files found"
- name: Setup java
uses: useblacksmith/setup-java@v5
uses: useblacksmith/setup-java@v5.0.1
with:
distribution: 'temurin'
java-version: '21'
@@ -91,13 +91,13 @@ jobs:
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
- name: Upload Leaf
uses: actions/upload-artifact@main
uses: actions/upload-artifact@v4.6.2
with:
name: Leaf 1.21.6
path: ./leaf-1.21.6-${{ env.BUILD_NUMBER }}.jar
- name: Release Leaf
uses: softprops/action-gh-release@v2.2.2 # Temp fix
uses: softprops/action-gh-release@v2.3.2
with:
name: "Leaf 1.21.6"
tag_name: "ver-1.21.6"
@@ -116,7 +116,7 @@ jobs:
echo "sha256=$HASH" >> $GITHUB_OUTPUT
- name: Upload JAR to download API
uses: appleboy/scp-action@master
uses: appleboy/scp-action@v1.0.0
with:
host: ${{ secrets.API_HOST }}
username: ${{ secrets.API_USER }}
@@ -125,7 +125,7 @@ jobs:
target: "~/api/uploads/"
- name: Insert build to download API
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v1.2.2
with:
host: ${{ secrets.API_HOST }}
username: ${{ secrets.API_USER }}

View File

@@ -66,7 +66,7 @@ index c1fccd64b1329e31ccf7e6a11853ce3a749b7ea4..6537b44fbf7995ed7d49050465f71dd6
+ private static RemoteRepository getCentralMirrorRepo() {
+ String mirrorAddr = System.getProperty("Leaf.library-download-repo");
+ if (mirrorAddr != null) {
+ new RemoteRepository.Builder("central", "default", mirrorAddr).build();
+ return new RemoteRepository.Builder("central", "default", mirrorAddr).build();
+ }
+ return null;
+ }