Files
AkarinMC/.github/workflows/maven.yml
2020-04-13 05:45:40 +07:00

35 lines
807 B
YAML

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
chmod -R -f 777 scripts
./akarin jar
- name: Upload Artifact
uses: actions/upload-artifact@v2-preview
with:
name: akarin-launcher
path: target/