build #11
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
name: build | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
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: sudo apt-get update; sudo apt-get install maven -y | |
- name: Clear Maven cache | |
run: mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false | |
- name: Build with Maven | |
run: mvn clean validate compile package verify install --file pom.xml | |
- run: mkdir staging && cp target/*.jar staging | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Package | |
path: staging |