Skip to content

Build with Maven

Build with Maven #17

Workflow file for this run

name: Build with Maven
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Archive JAR Artifact
uses: actions/upload-artifact@v4
with:
name: CraftCourier
path: target/CraftCourier-*.jar