Files
MobArena/.github/workflows/build.yml
T
Tad Hunt 58f1423a6e Upgrade versions in GitHub Actions
Fixes a bunch of deprecation warnings.
2023-10-22 01:27:53 +02:00

36 lines
763 B
YAML

name: build
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v4
- name: 'Set up JDK'
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: 'Cache dependencies'
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: 'Build, test, and package'
run: mvn -B package --file pom.xml
- name: 'Upload artifact'
uses: actions/upload-artifact@v3
with:
name: MobArena.jar
path: target/MobArena.jar