mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fixup publishing scripts, sponge building
This commit is contained in:
28 files changed
+41
-51
No files matched your search
@@ -13,25 +13,26 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
- name: 'Checkout for CI 🛎️'
|
||||
uses: actions/checkout@v3
|
||||
- name: 'Set up JDK 17 📦'
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
- name: Build with Gradle
|
||||
- name: 'Build with Gradle 🏗️'
|
||||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: build test publish
|
||||
env:
|
||||
RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
||||
RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||
- name: Publish Test Report
|
||||
- name: 'Publish Test Report 📊'
|
||||
uses: mikepenz/action-junit-report@v3
|
||||
if: success() || failure() # always run even if the previous step fails
|
||||
with:
|
||||
report_paths: '**/build/test-results/test/TEST-*.xml'
|
||||
- name: Upload to Modrinth & Hangar (Spigot)
|
||||
- name: 'Spigot: Publish to Modrinth & Hangar 🚰'
|
||||
uses: WiIIiam278/mc-publish@hangar
|
||||
with:
|
||||
modrinth-id: J6U9o3JG
|
||||
@@ -60,7 +61,7 @@ jobs:
|
||||
1.19.4
|
||||
1.20.1
|
||||
java: 16
|
||||
- name: Upload to Modrinth (Sponge)
|
||||
- name: 'Sponge: Publish to Modrinth 🧽'
|
||||
uses: WiIIiam278/mc-publish@hangar
|
||||
with:
|
||||
modrinth-id: J6U9o3JG
|
||||
@@ -79,7 +80,7 @@ jobs:
|
||||
game-versions: |
|
||||
1.16.5
|
||||
java: 16
|
||||
- name: Upload to Modrinth & CurseForge (Fabric)
|
||||
- name: 'Fabric: Publish to Modrinth & CurseForge 🧵'
|
||||
uses: WiIIiam278/mc-publish@hangar
|
||||
with:
|
||||
modrinth-id: J6U9o3JG
|
||||
@@ -95,13 +96,14 @@ jobs:
|
||||
luckperms | suggests | *
|
||||
plan-player-analytics | suggests | *
|
||||
files-primary: target/HuskHomes-Fabric-1.20.1-*.jar
|
||||
files-secondary: |
|
||||
target/HuskHomes-Fabric-1.19.4-*.jar
|
||||
target/HuskHomes-Fabric-1.19.2-*.jar
|
||||
files-secondary: target/HuskHomes-Fabric-!(1.20.1)-*.jar
|
||||
name: HuskHomes (Fabric) v${{ github.event.release.tag_name }}
|
||||
version: ${{ github.event.release.tag_name }}
|
||||
version-type: release
|
||||
changelog: ${{ github.event.release.body }}
|
||||
changelog: |
|
||||
> ⚠ Remember to download the correct JAR file for your version of Minecraft!
|
||||
|
||||
${{ github.event.release.body }}
|
||||
loaders: |
|
||||
fabric
|
||||
game-versions: |
|
||||
@@ -109,18 +111,11 @@ jobs:
|
||||
1.19.4
|
||||
1.20.1
|
||||
java: 17
|
||||
- name: Upload GitHub Artifact (Spigot)
|
||||
- name: 'Upload GitHub Artifacts 📦'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HuskHomes (Spigot)
|
||||
path: target/HuskHomes-Plugin-*.jar
|
||||
- name: Upload GitHub Artifact (Sponge)
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HuskHomes (Sponge)
|
||||
path: target/HuskHomes-Sponge-*.jar
|
||||
- name: Upload GitHub Artifact (Fabric)
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HuskHomes (Fabric)
|
||||
path: target/HuskHomes-Fabric-*.jar
|
||||
name: HuskHomes
|
||||
path: |
|
||||
target/HuskHomes-Plugin-*.jar
|
||||
target/HuskHomes-Sponge-*.jar
|
||||
target/HuskHomes-Fabric-*.jar
|
||||
Reference in new issue
Block a user