Bump java to 21 #50
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 and Upload | |
on: | |
push: | |
branches: | |
- "update" | |
pull_request: | |
branches: | |
- "update" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup JAVA 21 | |
uses: actions/[email protected] | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
- name: Cache Maven Packages | |
uses: actions/[email protected] | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build | |
run: mvn -B package --file pom.xml | |
- name: Upload | |
uses: actions/[email protected] | |
with: | |
name: GriefPrevention | |
path: target/GriefPrevention-*.jar |