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 8c29f73 commit ffbbd7a
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 30 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: ExtraHeads
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
releaseNotes: ${{ github.event.head_commit.message }}
16 changes: 6 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: Java CI

on:
push:
branches:
Expand All @@ -10,16 +8,14 @@ on:

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 @@ -7,13 +7,8 @@ There are a ton of new heads that are obtainable via killing the corresponding m
You can increase your chances by using a Sword of Beheading.

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

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

## Discord
You can find Slimefun's community on Discord!
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<dependency>
<groupId>com.github.slimefun</groupId>
<artifactId>Slimefun4</artifactId>
<version>RC-35</version>
<version>RC-36</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
import io.github.thebusybiscuit.slimefun4.libraries.dough.config.Config;
import io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack;
import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.GitHubBuildsUpdater;
import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.BlobBuildUpdater;
import io.github.thebusybiscuit.slimefun4.utils.ChatUtils;
import io.github.thebusybiscuit.slimefun4.utils.SlimefunUtils;

Expand All @@ -42,8 +42,8 @@ public void onEnable() {
// Setting up bStats
new Metrics(this, 5650);

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

itemGroup = new ItemGroup(
Expand Down

0 comments on commit ffbbd7a

Please sign in to comment.