Skip to content

Update bungee.yml

Update bungee.yml #21

Workflow file for this run

name: Build
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: target/SimpleStaffChat-Spigot-*+${{ github.run_number }}.jar