Cleanup code, and fix Sayan vanish name didn't work for some cases #329
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", "dev" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
if: "github.actor != 'dependabot[bot]'" | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up JDK 21 | |
uses: actions/setup-java@main | |
with: | |
java-version: 21 | |
distribution: zulu | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@main | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build | |
run: ./gradlew build | |
- name: Upload DeathMessages DevBuild | |
if: github.ref_name == 'master' && github.event_name != 'pull_request' | |
uses: marvinpinto/action-automatic-releases@master | |
with: | |
title: "DeathMessages v1.4.20-SNAPSHOT" | |
automatic_release_tag: "dev-build" | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
files: | | |
DeathMessagesLegacy/build/libs/DeathMessages-*.jar | |
DeathMessagesModern/build/libs/DeathMessages-*.jar | |
prerelease: true | |
- name: Upload DeathMessages Nightly | |
if: github.ref_name == 'dev' | |
uses: actions/upload-artifact@main | |
with: | |
name: DeathMessages-Nightly | |
path: | | |
DeathMessagesLegacy/build/libs/DeathMessages-*.jar | |
DeathMessagesModern/build/libs/DeathMessages-*.jar |