Towny Dependency Fix #196
Workflow file for this run
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
# 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 |