dependabot[bot] aec88668da
Bump actions/cache from 2.1.5 to 2.1.6
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.5...v2.1.6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-08 03:55:59 +00:00

40 lines
906 B
YAML

name: Maven Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
java-version: 16
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@v2.1.6
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
command: mvn -B package --file pom.xml
- name: Upload artifact
uses: actions/upload-artifact@v2.2.3
with:
name: AuthmeVelocity
path: |
proxy/target/AuthMeVelocity-proxy.jar
spigot/target/AuthMeVelocity-spigot.jar