mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-25 09:59:15 +00:00
Leaf 1.21.4
WIP
This commit is contained in:
10
.github/workflows/auto-update.yml
vendored
10
.github/workflows/auto-update.yml
vendored
@@ -45,23 +45,23 @@ jobs:
|
||||
- name: Grant execute permission for gradlew
|
||||
run: |
|
||||
cd Leaf
|
||||
git config --global user.name "Dreeam"
|
||||
git config --global user.name "Dreeam-qwq"
|
||||
git config --global user.email 61569423+Dreeam-qwq@users.noreply.github.com
|
||||
chmod +x gradlew
|
||||
|
||||
- uses: actions/setup-java@main
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: 21
|
||||
java-version: '21'
|
||||
|
||||
- name: Running tests before push
|
||||
run: |
|
||||
cd Leaf
|
||||
if ! git diff --quiet; then
|
||||
echo "Running tests...."
|
||||
./gradlew applyPatches
|
||||
./gradlew createMojmapPaperclipJar
|
||||
./gradlew rebuildPatches
|
||||
./gradlew applyAllPatches
|
||||
./gradlew build
|
||||
./gradlew rebuildAllServerPatches
|
||||
fi
|
||||
|
||||
- name: Check for changes and write to repository
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
name: Build Leaf 1.21.3
|
||||
name: Build Leaf 1.21.4
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "ver/1.21.3" ]
|
||||
branches: [ "dev/1.21.4" ]
|
||||
pull_request:
|
||||
branches: [ "ver/1.21.3" ]
|
||||
branches: [ "ver/1.21.4" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: gradle/actions/wrapper-validation@main
|
||||
- name: Set up JDK
|
||||
uses: graalvm/setup-graalvm@main
|
||||
with:
|
||||
@@ -33,8 +32,8 @@ jobs:
|
||||
|
||||
- name: Rename Paperclip Jar
|
||||
run: |
|
||||
mv build/libs/leaf-paperclip-1.21.3-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.3-mojmap.jar
|
||||
mv build/libs/leaf-paperclip-1.21.3-R0.1-SNAPSHOT-reobf.jar ./leaf-1.21.3-reobf.jar
|
||||
mv leaf-server/build/libs/leaf-paperclip-1.21.4-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21.4-mojmap.jar
|
||||
mv leaf-server/build/libs/leaf-paperclip-1.21.4-R0.1-SNAPSHOT-reobf.jar ./leaf-1.21.4-reobf.jar
|
||||
|
||||
- name: Publish API
|
||||
if: github.event_name != 'pull_request'
|
||||
@@ -44,18 +43,19 @@ jobs:
|
||||
export REPO_USER=${{ secrets.REPO_USER }}
|
||||
echo "REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}" >> $GITHUB_ENV
|
||||
export REPO_PASSWORD=${{ secrets.REPO_PASSWORD }}
|
||||
./gradlew :leaf-api:publish
|
||||
./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
|
||||
./gradlew publish
|
||||
# TODO
|
||||
# ./gradlew publishDevBundlePublicationToLeafRepository -PpublishDevBundle=true
|
||||
|
||||
- name: Upload Leaf
|
||||
uses: actions/upload-artifact@main
|
||||
with:
|
||||
name: Leaf 1.21.3
|
||||
path: ./leaf-1.21.3-*.jar
|
||||
name: Leaf 1.21.4
|
||||
path: ./leaf-1.21.4-*.jar
|
||||
|
||||
- name: Rename Paperclip Jar
|
||||
- name: Rename Leaf Jar
|
||||
run: |
|
||||
mv ./leaf-1.21.3-mojmap.jar ./leaf-1.21.3.jar
|
||||
mv ./leaf-1.21.4-mojmap.jar ./leaf-1.21.4.jar
|
||||
|
||||
# TODO: marvinpinto/action-automatic-releases is archived, need to find new one
|
||||
# Notes: create releases every time, similar changelogs with this, all commits for changelogs
|
||||
@@ -63,8 +63,8 @@ jobs:
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: marvinpinto/action-automatic-releases@master
|
||||
with:
|
||||
title: "Leaf 1.21.3"
|
||||
automatic_release_tag: "ver-1.21.3"
|
||||
title: "Leaf 1.21.4"
|
||||
automatic_release_tag: "ver-1.21.4"
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
files: "./leaf-1.21.3.jar"
|
||||
prerelease: false
|
||||
files: "./leaf-1.21.4.jar"
|
||||
prerelease: true
|
||||
Reference in New Issue
Block a user