mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-06 15:51:31 +00:00
[ci skip] Fix diff
This commit is contained in:
9
.github/workflows/build-1215.yml
vendored
9
.github/workflows/build-1215.yml
vendored
@@ -2,7 +2,7 @@ name: Build Leaf 1.21.5
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev/1.21.5" ]
|
||||
branches: [ "ver/1.21.5" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
echo "org.gradle.jvmargs=${{ env.GRADLE_MEMORY }} -Dfile.encoding=UTF-8" >> ~/.gradle/gradle.properties
|
||||
echo "org.gradle.parallel=true" >> ~/.gradle/gradle.properties
|
||||
echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties
|
||||
# This is only need if we create custom gradle.properies in home directory
|
||||
# This is only need if we create custom gradle.properies in home directory
|
||||
echo "leafUsername=${{ secrets.REPO_USER }}" >> ~/.gradle/gradle.properties
|
||||
echo "leafPassword=${{ secrets.REPO_PASSWORD }}" >> ~/.gradle/gradle.properties
|
||||
|
||||
@@ -106,7 +106,7 @@ jobs:
|
||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
target_commitish: "${{ github.sha }}"
|
||||
draft: false
|
||||
prerelease: true
|
||||
prerelease: false
|
||||
|
||||
- name: Calculate SHA-256
|
||||
id: hash
|
||||
@@ -114,6 +114,7 @@ jobs:
|
||||
FILE_NAME="leaf-1.21.5-${{ env.BUILD_NUMBER }}.jar"
|
||||
HASH=$(sha256sum "$FILE_NAME" | awk '{ print $1 }')
|
||||
echo "sha256=$HASH" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload JAR to download API
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
@@ -132,7 +133,9 @@ jobs:
|
||||
script: |
|
||||
BRANCH="${{ github.ref_name }}"
|
||||
REPO_DIR="/root/Leaf-${BRANCH//\//-}" # Replace slashes with dashes to avoid directory issues
|
||||
|
||||
[ -d "$REPO_DIR/.git" ] && cd "$REPO_DIR" && git fetch origin && git checkout "$BRANCH" && git reset --hard "origin/$BRANCH" || git clone --branch "$BRANCH" --depth 1 https://github.com/Winds-Studio/Leaf "$REPO_DIR"
|
||||
|
||||
# Proceed to insert the build into the API
|
||||
cd ~/api/cli
|
||||
node insertBuild.js \
|
||||
|
||||
2
.github/workflows/publish-api.yml
vendored
2
.github/workflows/publish-api.yml
vendored
@@ -1,7 +1,7 @@
|
||||
name: Publish API
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev/1.21.5" ]
|
||||
branches: [ "ver/1.21.5" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user