mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-19 15:09:25 +00:00
Update changes from ver/1.21.4 branch
This commit is contained in:
14
.github/workflows/build-1215.yml
vendored
14
.github/workflows/build-1215.yml
vendored
@@ -13,12 +13,12 @@ jobs:
|
|||||||
GRADLE_MEMORY: "-Xmx4g -XX:MaxMetaspaceSize=2g"
|
GRADLE_MEMORY: "-Xmx4g -XX:MaxMetaspaceSize=2g"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Gradle Cache
|
- name: Setup Gradle Cache
|
||||||
uses: useblacksmith/cache@v5
|
uses: useblacksmith/cache@v5.0.2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches/modules-2
|
~/.gradle/caches/modules-2
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
find ~/.gradle/caches -name "*.lock" -type f -delete || echo "No lock files found"
|
find ~/.gradle/caches -name "*.lock" -type f -delete || echo "No lock files found"
|
||||||
|
|
||||||
- name: Setup java
|
- name: Setup java
|
||||||
uses: useblacksmith/setup-java@v5
|
uses: useblacksmith/setup-java@v5.0.1
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
@@ -91,13 +91,13 @@ jobs:
|
|||||||
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
|
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
|
||||||
|
|
||||||
- name: Upload Leaf
|
- name: Upload Leaf
|
||||||
uses: actions/upload-artifact@main
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: Leaf 1.21.5
|
name: Leaf 1.21.5
|
||||||
path: ./leaf-1.21.5-${{ env.BUILD_NUMBER }}.jar
|
path: ./leaf-1.21.5-${{ env.BUILD_NUMBER }}.jar
|
||||||
|
|
||||||
- name: Release Leaf
|
- name: Release Leaf
|
||||||
uses: softprops/action-gh-release@v2.2.2 # Temp fix
|
uses: softprops/action-gh-release@v2.3.2
|
||||||
with:
|
with:
|
||||||
name: "Leaf 1.21.5"
|
name: "Leaf 1.21.5"
|
||||||
tag_name: "ver-1.21.5"
|
tag_name: "ver-1.21.5"
|
||||||
@@ -116,7 +116,7 @@ jobs:
|
|||||||
echo "sha256=$HASH" >> $GITHUB_OUTPUT
|
echo "sha256=$HASH" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload JAR to download API
|
- name: Upload JAR to download API
|
||||||
uses: appleboy/scp-action@master
|
uses: appleboy/scp-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.API_HOST }}
|
host: ${{ secrets.API_HOST }}
|
||||||
username: ${{ secrets.API_USER }}
|
username: ${{ secrets.API_USER }}
|
||||||
@@ -125,7 +125,7 @@ jobs:
|
|||||||
target: "~/api/uploads/"
|
target: "~/api/uploads/"
|
||||||
|
|
||||||
- name: Insert build to download API
|
- name: Insert build to download API
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@v1.2.2
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.API_HOST }}
|
host: ${{ secrets.API_HOST }}
|
||||||
username: ${{ secrets.API_USER }}
|
username: ${{ secrets.API_USER }}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ index ebb52c2c8d5fe8ca25513aadae8168180a3d426e..006a86da6afa1b7b80df5df073ebd236
|
|||||||
+ private static RemoteRepository getCentralMirrorRepo() {
|
+ private static RemoteRepository getCentralMirrorRepo() {
|
||||||
+ String mirrorAddr = System.getProperty("Leaf.library-download-repo");
|
+ String mirrorAddr = System.getProperty("Leaf.library-download-repo");
|
||||||
+ if (mirrorAddr != null) {
|
+ if (mirrorAddr != null) {
|
||||||
+ new RemoteRepository.Builder("central", "default", mirrorAddr).build();
|
+ return new RemoteRepository.Builder("central", "default", mirrorAddr).build();
|
||||||
+ }
|
+ }
|
||||||
+ return null;
|
+ return null;
|
||||||
+ }
|
+ }
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ Leaf 根据其上游项目及其他材料,采用多种开源许可证授权,
|
|||||||
|
|
||||||
## 🔥 特别感谢
|
## 🔥 特别感谢
|
||||||
[](https://cloud.swordsman.com.cn/?i8ab42c) \
|
[](https://cloud.swordsman.com.cn/?i8ab42c) \
|
||||||
cloud of swordsman | 剑客云
|
剑客云 | cloud of swordsman
|
||||||
|
|
||||||
如果你想找一个低价高性能、低延迟的云服务商,剑客云是个不错的选择!你可以在 [这里](https://cloud.swordsman.com.cn/?i8ab42c) 注册。
|
如果你想找一个低价高性能、低延迟的云服务商,剑客云是个不错的选择!你可以在 [这里](https://cloud.swordsman.com.cn/?i8ab42c) 注册。
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ If you want to find a cheaper, high performance, stable, lower latency host, the
|
|||||||
|
|
||||||
---
|
---
|
||||||
[](https://www.rainyun.com/NzE2NTc1_) \
|
[](https://www.rainyun.com/NzE2NTc1_) \
|
||||||
雨云
|
雨云 | RainYun
|
||||||
|
|
||||||
国际多线路选择,配套云存储 — 购买服务后七天内不满意可以申请退订,强大的技术支持团队和高在线率客服。雨云云服务器,用稳定和性价比,助力您快速上云。点击前往 [雨云](https://www.rainyun.com/NzE2NTc1_)。
|
国际多线路选择,配套云存储 — 购买服务后七天内不满意可以申请退订,强大的技术支持团队和高在线率客服。雨云云服务器,用稳定和性价比,助力您快速上云。点击前往 [雨云](https://www.rainyun.com/NzE2NTc1_)。
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user