mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-26 10:29:13 +00:00
Init 1.21.6
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
name: Build Leaf 1.21.5
|
||||
name: Build Leaf 1.21.6
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "ver/1.21.5" ]
|
||||
branches: [ "ver/1.21.6" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -93,15 +93,15 @@ jobs:
|
||||
- name: Upload Leaf
|
||||
uses: actions/upload-artifact@main
|
||||
with:
|
||||
name: Leaf 1.21.5
|
||||
path: ./leaf-1.21.5-${{ env.BUILD_NUMBER }}.jar
|
||||
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
|
||||
with:
|
||||
name: "Leaf 1.21.5"
|
||||
tag_name: "ver-1.21.5"
|
||||
files: "./leaf-1.21.5-${{ env.BUILD_NUMBER }}.jar"
|
||||
name: "Leaf 1.21.6"
|
||||
tag_name: "ver-1.21.6"
|
||||
files: "./leaf-1.21.6-${{ 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.5-${{ env.BUILD_NUMBER }}.jar"
|
||||
FILE_NAME="leaf-1.21.6-${{ 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.5-${{ env.BUILD_NUMBER }}.jar"
|
||||
source: "./leaf-1.21.6-${{ 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.5 \
|
||||
--versionGroupName 1.21.5 \
|
||||
--versionName 1.21.5 \
|
||||
--version 1.21.6 \
|
||||
--versionGroupName 1.21.6 \
|
||||
--versionName 1.21.6 \
|
||||
--build-number ${{ env.BUILD_NUMBER }} \
|
||||
--repositoryPath "$REPO_DIR" \
|
||||
--storagePath /root/api/storage \
|
||||
--download "primary:/root/api/uploads/leaf-1.21.5-${{ env.BUILD_NUMBER }}.jar:${{ steps.hash.outputs.sha256 }}" \
|
||||
--download "primary:/root/api/uploads/leaf-1.21.6-${{ env.BUILD_NUMBER }}.jar:${{ steps.hash.outputs.sha256 }}" \
|
||||
--buildChannel default
|
||||
8
.github/workflows/build-pr.yml
vendored
8
.github/workflows/build-pr.yml
vendored
@@ -2,7 +2,7 @@ name: Build Pull Request
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ "ver/1.21.5" ]
|
||||
branches: [ "ver/1.21.6" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -34,9 +34,9 @@ jobs:
|
||||
|
||||
- name: Rename Paperclip JARs
|
||||
run: |
|
||||
mv leaf-server/build/libs/leaf-paperclip-1.21.5-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.5.jar
|
||||
mv leaf-server/build/libs/leaf-paperclip-1.21.6-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.6.jar
|
||||
- name: Upload Leaf as build artifact
|
||||
uses: actions/upload-artifact@main
|
||||
with:
|
||||
name: Leaf 1.21.5
|
||||
path: ./leaf-1.21.5.jar
|
||||
name: Leaf 1.21.6
|
||||
path: ./leaf-1.21.6.jar
|
||||
|
||||
2
.github/workflows/publish-api.yml
vendored
2
.github/workflows/publish-api.yml
vendored
@@ -1,7 +1,7 @@
|
||||
name: Publish API
|
||||
on:
|
||||
push:
|
||||
branches: [ "ver/1.21.5" ]
|
||||
branches: [ "ver/1.21.6" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user