From f2651ba6f5aa45a09e6dd04ca3b2859963241792 Mon Sep 17 00:00:00 2001 From: RelativoBR <36118424+RelativoBR@users.noreply.github.com> Date: Thu, 22 Feb 2024 09:21:45 -0300 Subject: [PATCH 1/2] feat: updade blob-builds maven.yml --- .github/workflows/maven.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d30d037..fcd776d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,19 +1,27 @@ name: Java CI on: - release: - types: [created] + push: + branches: + - main jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.3.3 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1.4.3 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn package --file pom.xml + - uses: actions/checkout@v1 + - name: Set up JDK 16 + uses: actions/setup-java@v1 + with: + java-version: 16 + + - name: Build with Maven + run: mvn package + + - name: Upload to Blob Builds + uses: WalshyDev/blob-builds/gh-action@main + with: + project: Supreme + apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }} + file: ./target/Supreme.jar + releaseNotes: ${{ github.event.head_commit.message }} From 77c96f38aa1d24a7ec64e5d95dc9d879a6e119b3 Mon Sep 17 00:00:00 2001 From: RelativoBR <36118424+RelativoBR@users.noreply.github.com> Date: Thu, 22 Feb 2024 09:24:43 -0300 Subject: [PATCH 2/2] feat: change BlobBuildUpdater in Supreme.java --- src/main/java/com/github/relativobr/supreme/Supreme.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/relativobr/supreme/Supreme.java b/src/main/java/com/github/relativobr/supreme/Supreme.java index bd91101..b382da5 100644 --- a/src/main/java/com/github/relativobr/supreme/Supreme.java +++ b/src/main/java/com/github/relativobr/supreme/Supreme.java @@ -12,7 +12,7 @@ import com.github.relativobr.supreme.util.SupremePowerSection; import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon; import io.github.thebusybiscuit.slimefun4.libraries.dough.config.Config; -import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.GitHubBuildsUpdater; +import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.BlobBuildUpdater; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; @@ -151,7 +151,7 @@ public void onEnable() { && getDescription().getVersion() .startsWith("DEV - ")) { Supreme.inst().log(Level.INFO, "Auto Update: enable"); - new GitHubBuildsUpdater(this, getFile(), "RelativoBR/Supreme/main").start(); + new BlobBuildUpdater(this, getFile(), "Supreme", "Dev").start(); } else { Supreme.inst().log(Level.INFO, "Auto Update: disable"); }