Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 24f5934

Browse files
committed
Add java CI and modrinth auto-publishing
1 parent aa52a35 commit 24f5934

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Dependabot configuration file for GitHub
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "gradle" # See documentation for possible values
6+
directory: "/" # Location of package manifests
7+
schedule:
8+
interval: "daily"

.github/funding.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Funding metadata for GitHub
2+
3+
github: WiIIiam278
4+
custom: https://buymeacoff.ee/william278

.github/workflows/java_ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Builds and tests the project with Gradle
2+
name: Java CI
3+
4+
on:
5+
push:
6+
branches: [ "master" ]
7+
pull_request:
8+
branches: [ "master" ]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up JDK 16
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: '16'
22+
distribution: 'temurin'
23+
- name: Build with Gradle
24+
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
25+
with:
26+
arguments: build
27+
- name: Query Version
28+
run: |
29+
echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')"
30+
id: fetch-version
31+
- name: Get Version
32+
run: |
33+
echo "version_name=${{steps.fetch-version.outputs.VERSION_NAME}}" >> $GITHUB_ENV
34+
- name: Upload to Modrinth
35+
uses: Kir-Antipov/mc-publish@v3.2
36+
with:
37+
modrinth-id: bME80dEI
38+
modrinth-featured: false
39+
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
40+
modrinth-dependencies: |
41+
J6U9o3JG | depends | 3.0
42+
files-primary: build/libs/HuskHomesGUI-*-all.jar
43+
name: HuskHomesGUI v${{ env.version_name }}
44+
version: ${{ env.version_name }}
45+
version-type: alpha
46+
changelog: ${{ github.event.head_commit.message }}
47+
loaders: |
48+
spigot
49+
paper
50+
purpur
51+
game-versions: |
52+
1.16.5
53+
1.17.1
54+
1.18.2
55+
1.19.2
56+
java: 16
57+
- name: Upload GitHub Artifact
58+
uses: actions/upload-artifact@v2
59+
with:
60+
name: HuskHomesGUI Plugin
61+
path: build/libs/HuskHomesGUI-*-all.jar

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# [![HuskHomes Banner](images/banner-graphic.png)](https://github.com/WiIIiam278/HuskHomes2)
2+
[![GitHub CI](https://img.shields.io/github/workflow/status/WiIIiam278/HuskHomesGUI/Java%20CI?logo=github)](https://github.com/WiIIiam278/HuskHomesGUI/actions/workflows/java_ci.yml)
23
[![Support Discord](https://img.shields.io/discord/818135932103557162.svg?label=&logo=discord&logoColor=fff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/tVYhJfyDWG)
34

45
**HuskHomesGUI** is a GUI add-on plugin for [HuskHomes v3.x](https://github.com/WiIIiam278/HuskHomes2) on Spigot servers. It provides a chest-style graphical user interface (GUI) for browsing home and warp lists. It replaces the chat menu system that is built into HuskHomes when you type `/homelist`, `/phomelist` or `/warplist`.

0 commit comments

Comments
 (0)