9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-26 10:29:13 +00:00

Update Leaf 1.21.8

Co-Authored-By: Pascalpex <68245106+Pascalpex@users.noreply.github.com>
This commit is contained in:
Dreeam
2025-07-17 23:00:27 +08:00
parent 2ab9349a45
commit 85680d067f
11 changed files with 39 additions and 39 deletions

View File

@@ -1,8 +1,8 @@
name: Build Leaf 1.21.7
name: Build Leaf 1.21.8
on:
push:
branches: [ "ver/1.21.7" ]
branches: [ "ver/1.21.8" ]
workflow_dispatch:
jobs:
@@ -93,15 +93,15 @@ jobs:
- name: Upload Leaf
uses: actions/upload-artifact@v4
with:
name: Leaf 1.21.7
path: ./leaf-1.21.7-${{ env.BUILD_NUMBER }}.jar
name: Leaf 1.21.8
path: ./leaf-1.21.8-${{ env.BUILD_NUMBER }}.jar
- name: Release Leaf
uses: softprops/action-gh-release@v2
with:
name: "Leaf 1.21.7"
tag_name: "ver-1.21.7"
files: "./leaf-1.21.7-${{ env.BUILD_NUMBER }}.jar"
name: "Leaf 1.21.8"
tag_name: "ver-1.21.8"
files: "./leaf-1.21.8-${{ env.BUILD_NUMBER }}.jar"
body_path: "./release_notes.md"
token: "${{ secrets.GITHUB_TOKEN }}"
target_commitish: "${{ github.sha }}"
@@ -111,7 +111,7 @@ jobs:
- name: Calculate SHA-256
id: hash
run: |
FILE_NAME="leaf-1.21.7-${{ env.BUILD_NUMBER }}.jar"
FILE_NAME="leaf-1.21.8-${{ env.BUILD_NUMBER }}.jar"
HASH=$(sha256sum "$FILE_NAME" | awk '{ print $1 }')
echo "sha256=$HASH" >> $GITHUB_OUTPUT
@@ -121,7 +121,7 @@ jobs:
host: ${{ secrets.API_HOST }}
username: ${{ secrets.API_USER }}
password: ${{ secrets.API_PASS }}
source: "./leaf-1.21.7-${{ env.BUILD_NUMBER }}.jar"
source: "./leaf-1.21.8-${{ env.BUILD_NUMBER }}.jar"
target: "~/api/uploads/"
- name: Insert build to download API
@@ -141,11 +141,11 @@ jobs:
node insertBuild.js \
--projectName leaf \
--projectFriendlyName "Leaf" \
--version 1.21.7 \
--versionGroupName 1.21.7 \
--versionName 1.21.7 \
--version 1.21.8 \
--versionGroupName 1.21.8 \
--versionName 1.21.8 \
--build-number ${{ env.BUILD_NUMBER }} \
--repositoryPath "$REPO_DIR" \
--storagePath /root/api/storage \
--download "primary:/root/api/uploads/leaf-1.21.7-${{ env.BUILD_NUMBER }}.jar:${{ steps.hash.outputs.sha256 }}" \
--download "primary:/root/api/uploads/leaf-1.21.8-${{ env.BUILD_NUMBER }}.jar:${{ steps.hash.outputs.sha256 }}" \
--buildChannel default

View File

@@ -2,7 +2,7 @@ name: Build Pull Request
on:
pull_request:
branches: [ "ver/1.21.7" ]
branches: [ "ver/1.21.8" ]
jobs:
build:
@@ -34,9 +34,9 @@ jobs:
- name: Rename Paperclip JARs
run: |
mv leaf-server/build/libs/leaf-paperclip-1.21.7-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.7.jar
mv leaf-server/build/libs/leaf-paperclip-1.21.8-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.8.jar
- name: Upload Leaf as build artifact
uses: actions/upload-artifact@v4
with:
name: Leaf 1.21.7
path: ./leaf-1.21.7.jar
name: Leaf 1.21.8
path: ./leaf-1.21.8.jar

View File

@@ -2,7 +2,7 @@ name: Publish API
on:
push:
branches: [ "ver/1.21.7" ]
branches: [ "ver/1.21.8" ]
jobs:
build: