Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Blob Builds #87

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Metrics Deployment

on:
push:
branches:
- master

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: FoxyMachines
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: ./target/FoxyMachines.jar
releaseNotes: ${{ github.event.head_commit.message }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FoxyMachines adds various machines and tools to [Slimefun](https://github.com/Sl

### Requires at least Java 16!

### [Download](https://thebusybiscuit.github.io/builds/GallowsDove/FoxyMachines/master/)
[![Build Status](https://thebusybiscuit.github.io/builds/GallowsDove/FoxyMachines/master/badge.svg)](https://thebusybiscuit.github.io/builds/GallowsDove/FoxyMachines/master)
### [Download](https://blob.build/project/FoxyMachines)
[![Build Status](https://img.shields.io/badge/build-latest-brightgreen.svg)](https://blob.build/project/FoxyMachines)

#### Unwanted items can be disabled in items.yml

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</pluginRepositories>

<build>
<finalName>${project.name} v${project.version}</finalName>
<finalName>${project.name}</finalName>
<defaultGoal>clean package</defaultGoal>
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>

Expand Down Expand Up @@ -116,7 +116,7 @@
<dependency>
<groupId>com.github.Slimefun</groupId>
<artifactId>Slimefun4</artifactId>
<version>f0ac184c5b</version>
<version>RC-37</version>
<scope>provided</scope>
</dependency>

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/me/gallowsdove/foxymachines/FoxyMachines.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.github.mooy1.infinitylib.common.Scheduler;
import io.github.mooy1.infinitylib.core.AbstractAddon;
import io.github.mooy1.infinitylib.metrics.bukkit.Metrics;
import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.BlobBuildUpdater;
import lombok.SneakyThrows;
import me.gallowsdove.foxymachines.abstracts.AbstractWand;
import me.gallowsdove.foxymachines.abstracts.CustomBoss;
Expand Down Expand Up @@ -72,6 +73,11 @@ public void enable() {

getAddonCommand().addSub(new KillallCommand()).addSub((new QuestCommand())).
addSub(new SacrificialAltarCommand()).addSub(new SummonCommand()).addSub(new ListallCommand());

if (getConfig().getBoolean("auto-update") && getDescription().getVersion().startsWith("Dev - ")) {
BlobBuildUpdater updater = new BlobBuildUpdater(this, this.getFile(), "FoxyMachines", "Dev");
updater.start();
}
}

@SneakyThrows
Expand Down
Loading