Skip to content

Commit

Permalink
blob build woohoo
Browse files Browse the repository at this point in the history
  • Loading branch information
J3fftw1 committed Nov 23, 2023
1 parent 661862e commit 5f1dcec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,14 @@ jobs:
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: LiteXpansion
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: ./target/LiteXpansion.jar
releaseNotes: ${{ github.event.head_commit.message }}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>com.github.Slimefun</groupId>
<artifactId>Slimefun4</artifactId>
<version>RC-33</version>
<version>1aeb0e8</version>
<scope>provided</scope>
</dependency>

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/dev/j3fftw/litexpansion/LiteXpansion.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import io.github.thebusybiscuit.slimefun4.api.researches.Research;
import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.BlobBuildUpdater;
import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.GitHubBuildsUpdater;
import org.bstats.MetricsBase;
import org.bstats.bukkit.Metrics;
Expand Down Expand Up @@ -37,7 +38,7 @@ public void onEnable() {
metricsService.setup(metrics);

if (getConfig().getBoolean("options.auto-update") && getDescription().getVersion().startsWith("DEV - ")) {
new GitHubBuildsUpdater(this, getFile(), "J3fftw1/LiteXpansion/master").start();
new BlobBuildUpdater(this, getFile(), "LiteXpansion", "Dev").start();
}

registerEnchantments();
Expand Down

0 comments on commit 5f1dcec

Please sign in to comment.