Skip to content

Commit

Permalink
blob-build
Browse files Browse the repository at this point in the history
  • Loading branch information
J3fftw1 committed Jan 25, 2024
1 parent 3de3c9d commit 855acb8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish

on:
push:
branches:
- main

jobs:
publish:

name: Upload Release
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[ci skip]') == false

steps:
- uses: actions/checkout@v2

- name: Set up JDK 16
uses: actions/setup-java@v1
with:
java-version: 16

- name: Build with Maven
run: mvn -B package

- name: Upload to Blob Builds
uses: WalshyDev/blob-builds/gh-action@main
with:
project: Networks
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: ./target/Networks.jar
releaseNotes: ${{ github.event.head_commit.message }}
12 changes: 11 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
<pattern>org.bstats</pattern>
<shadedPattern>io.github.sefiraat.networks.bstats</shadedPattern>
</relocation>
<relocation>
<pattern>com.github.baked-libs.dough</pattern>
<shadedPattern>dev.sefiraat.cultivation.dough</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
Expand Down Expand Up @@ -148,9 +152,15 @@
<dependency>
<groupId>com.github.Slimefun</groupId>
<artifactId>Slimefun4</artifactId>
<version>RC-35</version>
<version>cd3672c3f2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.baked-libs.dough</groupId>
<artifactId>dough-api</artifactId>
<version>1108163a49</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>dev.sefiraat</groupId>
<artifactId>SefiLib</artifactId>
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/io/github/sefiraat/networks/Networks.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package io.github.sefiraat.networks;

import io.github.bakedlibs.dough.updater.BlobBuildUpdater;
import io.github.sefiraat.networks.commands.NetworksMain;
import io.github.sefiraat.networks.managers.ListenerManager;
import io.github.sefiraat.networks.managers.SupportedPluginManager;
import io.github.sefiraat.networks.slimefun.NetheoPlants;
import io.github.sefiraat.networks.slimefun.NetworkSlimefunItems;
import io.github.sefiraat.networks.slimefun.network.NetworkController;
import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon;
import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.GitHubBuildsUpdater;
import org.bstats.bukkit.Metrics;
import org.bstats.charts.AdvancedPie;
import org.bukkit.plugin.PluginManager;
Expand Down Expand Up @@ -60,10 +60,9 @@ public void onEnable() {

public void tryUpdate() {
if (getConfig().getBoolean("auto-update")
&& getDescription().getVersion().startsWith("DEV")
&& getDescription().getVersion().startsWith("DEV -")
) {
String updateLocation = MessageFormat.format("{0}/{1}/{2}", this.username, this.repo, this.branch);
GitHubBuildsUpdater updater = new GitHubBuildsUpdater(this, getFile(), updateLocation);
BlobBuildUpdater updater = new BlobBuildUpdater(this, getFile(), "DEV");
updater.start();
}
}
Expand Down

0 comments on commit 855acb8

Please sign in to comment.