9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 18:09:17 +00:00

Updated API patches to 1.21

This commit is contained in:
Dreeam
2024-06-17 13:00:35 +08:00
parent b4b5d0c23b
commit 1cbc007739
8 changed files with 45 additions and 52 deletions

View File

@@ -1,10 +1,10 @@
name: Build Leaf 1.20.6
name: Build Leaf 1.21
on:
push:
branches: [ "ver/1.20.6" ]
branches: [ "ver/1.21" ]
pull_request:
branches: [ "ver/1.20.6" ]
branches: [ "ver/1.21" ]
jobs:
build:
@@ -33,8 +33,8 @@ jobs:
- name: Rename Paperclip Jar
run: |
mv build/libs/leaf-paperclip-1.20.6-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.20.6-mojmap.jar
mv build/libs/leaf-paperclip-1.20.6-R0.1-SNAPSHOT-reobf.jar ./leaf-1.20.6-reobf.jar
mv build/libs/leaf-paperclip-1.21-R0.1-SNAPSHOT-mojmap.jar ./leaf-1.21-mojmap.jar
mv build/libs/leaf-paperclip-1.21-R0.1-SNAPSHOT-reobf.jar ./leaf-1.21-reobf.jar
# - name: Publish API
# if: github.event_name != 'pull_request'
@@ -48,15 +48,15 @@ jobs:
- name: Upload Leaf
uses: actions/upload-artifact@main
with:
name: Leaf 1.20.6
path: ./leaf-1.20.6-*.jar
name: Leaf 1.21
path: ./leaf-1.1-*.jar
- name: Release Leaf
if: github.event_name != 'pull_request'
uses: marvinpinto/action-automatic-releases@master
with:
title: "Leaf 1.20.6"
automatic_release_tag: "ver-1.20.6"
title: "Leaf 1.21"
automatic_release_tag: "ver-1.21"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: "./leaf-1.20.6-*.jar"
files: "./leaf-1.21-*.jar"
prerelease: false