From 0694ba02074620a03a4e1bb990ba7ccff6f6f726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=84=97=E3=84=A0=CB=8B=20=E3=84=91=E3=84=A7=CB=8A?= Date: Thu, 2 Apr 2020 11:24:45 +0800 Subject: [PATCH] Add Github Actions --- .github/workflows/maven.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 000000000..2f327c693 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,32 @@ +name: Java CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v1.3.0 + with: + java-version: 8 + - uses: actions/cache@v1.1.2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Patch + run: | + git config --global user.email "you@example.com" + git config --global user.name "Your Name" + git submodule update --init --recursive + ./akarin jar + - name: Upload Artifact + uses: actions/upload-artifact@v2-preview + with: + path: akarin-paperclip.jar +