Skip to content

build

build #20

Workflow file for this run

name: build
on: workflow_dispatch
jobs:
build:
runs-on: [self-hosted, Ubuntu]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
- name: Install Maven
run: apt-get update; apt-get install maven -y
- name: Build with Maven
run: mvn clean validate compile package --file pom.xml
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging