Improve lower version compatibility #26
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 DeathMessages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up JDK 17 | |
uses: actions/setup-java@main | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Build with Maven | |
run: mvn clean kotlin:compile package | |
- name: Release DeathMessages | |
if: "contains(github.event.commits[0].message, '[Release]')" | |
uses: marvinpinto/action-automatic-releases@master | |
with: | |
title: "DeathMessages v1.4.18" | |
automatic_release_tag: "1.4.18" | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
files: "target/*.jar" | |
prerelease: false | |
- name: Upload DeathMessages DevBuild | |
#if: github.ref_name == 'nextgen' | |
uses: marvinpinto/action-automatic-releases@master | |
with: | |
title: "DeathMessages v1.4.18-SNAPSHOT" | |
automatic_release_tag: "dev" | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
files: "target/DeathMessages-*.jar" | |
prerelease: true |