Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

HuskChat 2.6.1 - Hotfix #6

HuskChat 2.6.1 - Hotfix

HuskChat 2.6.1 - Hotfix #6

Workflow file for this run

# Publishes a release to Modrinth and CurseForge when a release is published on GitHub.
name: Release Test & Publish
on:
release:
types: [ published ]
permissions:
contents: read
checks: write
env:
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/jep/
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 16
uses: actions/setup-java@v3
with:
java-version: '16'
distribution: 'temurin'
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10.8'
- name: Install Python dependencies
shell: bash
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install jep
python -m pip install alt-profanity-check
- 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
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
uses: WiIIiam278/mc-publish@hangar
with:
modrinth-id: SSXTD3me
modrinth-featured: true
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
hangar-id: William278/HuskChat
hangar-token: ${{ secrets.HANGAR_API_KEY }}
files-primary: target/HuskChat-Plugin-*.jar
name: HuskChat v${{ github.event.release.tag_name }}
version: ${{ github.event.release.tag_name }}
version-type: release
changelog: ${{ github.event.release.body }}
game-versions: |
1.16.5
1.17.1
1.18.2
1.19.4
1.20.1
loaders: |
bungeecord
velocity
spigot
paper
folia
modrinth-dependencies: |
unsignedvelocity | suggests | *
signedvelocity | suggests | *
papiproxybridge | suggests | *
placeholderapi | suggests | *
java: 16
- name: Upload GitHub Artifact
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: HuskChat Plugin
path: target/HuskChat-Plugin-*.jar