dependabot[bot] e7df4e19be
Bump actions/upload-artifact from 2.2.3 to 2.2.4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.3...v2.2.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-08 03:55:57 +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.5
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.4
with:
name: AuthmeVelocity
path: |
proxy/target/AuthMeVelocity-proxy.jar
spigot/target/AuthMeVelocity-spigot.jar