From 94e90ad79594fe9e8ea3a8f6a35fcb7f70100bfd Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 28 Jan 2020 15:56:57 +0100 Subject: [PATCH] I'm honestly not sure why this doesn't work I'm good at things --- .github/workflows/gradle.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 432ba278..e3cdcbe1 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,24 +1,25 @@ name: Java CI - -on: [push] - +on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v1 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 + - name: Restore cache + uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle') }} - name: Build with Gradle run: ./gradlew build - - name: Upload artifact uses: actions/upload-artifact@v1.0.0 with: + # Artifact name name: NaturesAura # Directory containing files to upload path: build/libs