Skip to content

Commit

Permalink
feat: updade blob-builds #57
Browse files Browse the repository at this point in the history
Changing project build plugins
  • Loading branch information
RelativoBR authored Feb 22, 2024
2 parents 3f9fc58 + 77c96f3 commit 8398ffd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 2 additions & 2 deletions src/main/java/com/github/relativobr/supreme/Supreme.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
}
Expand Down

0 comments on commit 8398ffd

Please sign in to comment.