From 2d2bc2fa1b992927f628f4312f8396161c5b7cad Mon Sep 17 00:00:00 2001 From: Sagvi <91565408+Sagvi@users.noreply.github.com> Date: Sat, 8 Jan 2022 12:47:09 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..06c0f46 --- /dev/null +++ b/.github/workflows/main.yml @@ -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