Create main.yml

This commit is contained in:
Sagvi 2022-01-08 12:47:09 +01:00 committed by GitHub
parent 786f9af17e
commit 2d2bc2fa1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

29
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Zbuduj
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 16
uses: actions/setup-java@v1
with:
java-version: 16
- name: Build with Maven
run: mvn -B package
- name: Archive artifacts
uses: actions/upload-artifact@v1
if: success()
with:
name: Build
path: target/GeyserConnect.jar