Skip to content

Merge pull request #119 from BadWolfMC/dependabot/maven/com.nisovin.s… #204

Merge pull request #119 from BadWolfMC/dependabot/maven/com.nisovin.s…

Merge pull request #119 from BadWolfMC/dependabot/maven/com.nisovin.s… #204

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
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
- run: mvn --batch-mode --update-snapshots verify
- run: mkdir artifact && cp target/*.jar artifact
- uses: actions/upload-artifact@v4
with:
name: Package
path: artifact
# Upload artifacts
- name: Upload Distributable Jar
id: upload-final
uses: actions/upload-artifact@v4
with:
name: dist
path: ./target/Brewery.jar