Added Github Actions
This commit is contained in:
parent
ccff7c3a11
commit
a7ef326846
40
.github/workflows/maven.yml
vendored
Normal file
40
.github/workflows/maven.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
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.3
|
||||
with:
|
||||
name: AuthmeVelocity
|
||||
path: |
|
||||
proxy/target/AuthMeVelocity-proxy.jar
|
||||
spigot/target/AuthMeVelocity-spigot.jar
|
Loading…
x
Reference in New Issue
Block a user