Files
MobArena/.github/workflows/build.yml
T
Andreas Troelsen 8c5ae13bef Rename build workflow.
The previous name was really just a way to try to "prettify" the whole
thing, but the badge in the README is a little wonky compared to other
projects, so we're just gonna go with "build" for now for consistency.
2022-06-25 17:18:02 +02:00

29 lines
733 B
YAML

name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v2
- name: 'Set up JDK'
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: 'Cache dependencies'
uses: actions/cache@v2
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@v2
with:
name: MobArena.jar
path: target/MobArena.jar