Skip to content

Commit

Permalink
chore: use blob build
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Feb 12, 2024
1 parent 4cd4b35 commit 24cf7be
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 31 deletions.
14 changes: 4 additions & 10 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body:
label: Checklist
description: Please go through this checklist before you create the issue.
options:
- label: You are using official version downloaded from Builds (https://thebusybiscuit.github.io/builds/)
- label: You are using official version downloaded from Blob Builds (https://blob.build)
required: true
- label: You did not modify the jar file
required: true
Expand Down Expand Up @@ -96,18 +96,12 @@ body:
validations:
required: true

- type: dropdown
- type: input
id: minecraft-version
attributes:
label: Minecraft Version
description: Please select your Minecraft Version
options:
- 1.20.x
- 1.19.x
- 1.18.x
- 1.17.x
- 1.16.x
- Older versions are not supported
description: Please type your Minecraft Version
placeholder: 1.16.5
validations:
required: true

Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/blob-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Blob Build

on:
push:
branches:
- master

jobs:
build:
if: startsWith(github.event.head_commit.message, '[CI skip]') == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Build with Maven
run: mvn package --file pom.xml
- name: Upload to Blob Builds
uses: WalshyDev/blob-builds/gh-action@main
with:
project: MobCapturer
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
releaseNotes: ${{ github.event.head_commit.message }}
18 changes: 8 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@ name: Java CI
on:
push:
branches:
- master
- master
pull_request:
branches:
- master
- master

jobs:
build:

if: startsWith(github.event.head_commit.message, '[CI skip]') == false
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3.0.2
- name: Set up JDK 16
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 16
cache: 'maven'
java-version: 17
distribution: temurin
- name: Build with Maven
run: mvn package --file pom.xml
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ But the mobs that do work work extremely well!<br>
The captured mobs will retain attributes, potion effects, fire ticks, custom names, their health and even entity-specific traits like wool colors and much more.

## :floppy_disk: Download MobCapturer
You can download MobCapturer right here: [Development Builds](https://thebusybiscuit.github.io/builds/TheBusyBiscuit/MobCapturer/master/)
You can download MobCapturer right here: [Dev Builds](https://blob.build/project/MobCapturer)

<p align="center">
<a href="https://thebusybiscuit.github.io/builds/TheBusyBiscuit/MobCapturer/master/">
<img src="https://thebusybiscuit.github.io/builds/TheBusyBiscuit/MobCapturer/master/badge.svg" alt="Build Server"/>
</a>
</p>

## :gear: config
You can change the following settings in `config.yml`:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<dependency>
<groupId>com.github.Slimefun</groupId>
<artifactId>Slimefun4</artifactId>
<version>RC-35</version>
<version>RC-36</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand All @@ -118,7 +118,7 @@
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.0</version>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import io.github.thebusybiscuit.mobcapturer.setup.Setup;
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;

/**
* MobCapturer Slimefun addon
Expand Down Expand Up @@ -46,8 +46,8 @@ public void onEnable() {
Config cfg = new Config(this);
new Metrics(this, 6672);

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

registry = new Registry(cfg);
Expand Down

0 comments on commit 24cf7be

Please sign in to comment.