release #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Release | |
on: | |
push: | |
tags: [ "*" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Generate changelog | |
id: changelog | |
uses: metcalfc/[email protected] | |
with: | |
myToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
cache: maven | |
- name: Build with Maven | |
run: mvn clean package | |
- name: Release | |
uses: Kir-Antipov/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
modrinth-id: 6zYtBRSV | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
modrinth-featured: true | |
loaders: | | |
bukkit | |
spigot | |
paper | |
purpur | |
folia | |
game-versions: ">=1.8" | |
game-version-filter: releases | |
files: | | |
**/target/topper-*-shaded.jar | |
**/target/topper-*-@(sources|javadoc).jar | |
name: ${{ github.ref_name }} | |
changelog: ${{ steps.changelog.outputs.changelog }} | |
version: ${{ github.ref_name }} |