9
0
mirror of https://github.com/SparklyPower/SparklyPaper.git synced 2025-12-19 15:09:27 +00:00

Update workflows

This commit is contained in:
MrPowerGamerBR
2025-01-14 00:58:18 -03:00
parent f060ddc932
commit ed48f4e0f6
3 changed files with 9 additions and 10 deletions

View File

@@ -1,9 +1,8 @@
name: Automatically update Paper commit hash
on:
workflow_dispatch: {}
# Paper did not release a ver/1.21.3 branch, so we need to disable it manually
# schedule:
# - cron: "0 0 * * *"
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
@@ -12,7 +11,7 @@ jobs:
uses: actions/checkout@v3
with:
path: 'SparklyPaper'
ref: 'ver/1.21.3'
ref: 'ver/1.21.4'
token: ${{ secrets.LORITTA_PAT }}
- name: Checkout Paper Repository

View File

@@ -29,7 +29,7 @@ jobs:
- name: Delete Parallel world ticking patch
run: rm sparklypaper-server/minecraft-patches/features/*-Parallel-world-ticking.patch sparklypaper-server/paper-patches/features/*-Parallel-world-ticking.patch
- name: Apply Patches
run: ./gradlew -PsparklypaperImplementationVersionSuffix=without-pwt applyPatches
run: ./gradlew -PsparklypaperImplementationVersionSuffix=without-pwt applyAllPatches
- name: Build
run: ./gradlew -PsparklypaperImplementationVersionSuffix=without-pwt build
- name: Create Paperclip JAR
@@ -38,9 +38,9 @@ jobs:
name: "Upload Mojang Mappings Paperclip JAR"
with:
name: SparklyPaper (without Parallel World Ticking) Paperclip (Mojang Mappings - mojmap)
path: "build/libs/SparklyPaper-paperclip-*-mojmap.jar"
path: "sparklypaper-server/build/libs/SparklyPaper-paperclip-*-mojmap.jar"
- uses: actions/upload-artifact@v4
name: "Upload Spigot Mappings (reobf) Paperclip JAR"
with:
name: SparklyPaper (without Parallel World Ticking) Paperclip (Spigot Mappings - reobf)
path: "build/libs/SparklyPaper-paperclip-*-reobf.jar"
path: "sparklypaper-server/build/libs/SparklyPaper-paperclip-*-reobf.jar"

View File

@@ -27,7 +27,7 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Apply Patches
run: ./gradlew applyPatches
run: ./gradlew applyAllPatches
- name: Build
run: ./gradlew build
- name: Publish publications and dev bundle
@@ -41,9 +41,9 @@ jobs:
name: "Upload Mojang Mappings Paperclip JAR"
with:
name: SparklyPaper Paperclip (Mojang Mappings - mojmap)
path: "build/libs/SparklyPaper-paperclip-*-mojmap.jar"
path: "sparklypaper-server/build/libs/SparklyPaper-paperclip-*-mojmap.jar"
- uses: actions/upload-artifact@v4
name: "Upload Spigot Mappings (reobf) Paperclip JAR"
with:
name: SparklyPaper Paperclip (Spigot Mappings - reobf)
path: "build/libs/SparklyPaper-paperclip-*-reobf.jar"
path: "sparklypaper-server/build/libs/SparklyPaper-paperclip-*-reobf.jar"