Skip to content

v3.12.0: Add Blacklist option #1

v3.12.0: Add Blacklist option

v3.12.0: Add Blacklist option #1

name: Build Jar
on:
release:
types: [published]
jobs:
build:
strategy:
matrix:
include:
- platforms: |
bungeecord
waterfall
directory: bungeecord
name: BungeeCord, Waterfall
- platforms: velocity
directory: velocity
name: Velocity
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Build jar
run: mvn clean install
- name: Obtain version from Release
id: release-version
run: |
version=$(echo ${{ github.event.release.tag_name }} | cut -d'v' -f2)
echo "::set-output name=version::$version"
- name: Upload ${{ matrix.name }} file to Modrinth and GitHub
uses: Kir-Antipov/[email protected]
with:
name: v${{ steps.release-version.outputs.version }} - ${{ matrix.name }}
version: v${{ steps.release-version.outputs.version }}
version-type: release
files: ${{ matrix.directory }}/target/OneVersionRemake-*.jar
files-secondary: ""
loaders: ${{ matrix.platforms }}
game-version-filter: releases
game-versions: '>=1.8.8'
modrinth-id: EONKUmG1
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}