Skip to content

Move bStats metrics to last in onEnable for Bungee and Velocity #11

Move bStats metrics to last in onEnable for Bungee and Velocity

Move bStats metrics to last in onEnable for Bungee and Velocity #11

Workflow file for this run

name: Paper
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Rename JAR with Build Number
run: |
original_jar=$(find SimpleStaffChat-Spigot/target/ -type f -name "SimpleStaffChat-Spigot-*.jar")
new_name=$(echo "$original_jar" | sed "s/SimpleStaffChat-Spigot-\(.*\)\.jar/SimpleStaffChat-Spigot-\1+${{ github.run_number }}.jar/")
mv "$original_jar" "$new_name"
- name: Upload a Build Artifact
uses: actions/[email protected] # https://github.com/actions/upload-artifact/releases
with:
name: Click here to download
path: SimpleStaffChat-Spigot/target/SimpleStaffChat-Spigot-*+${{ github.run_number }}.jar