aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/gradle.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/gradle.yml')
-rw-r--r--.github/workflows/gradle.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index 236855e..1ff3b4a 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
-name: Java CI with Gradle
+name: Build Mod with Gradle
on:
push:
@@ -20,7 +20,18 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
+ - name: Cache Gradle packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
+ restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
+ - name: Upload artifacts
+ - uses: actions/upload-artifact@v2
+ with:
+ name: Mod (Beta)
+ path: build/libs