Skip to content

Commit

Permalink
.github: Use gradle-build-action for caching
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Verma <[email protected]>
  • Loading branch information
shank03 committed Sep 22, 2023
1 parent 208e810 commit 60a3896
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 41 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/gradle-pr.yml

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,26 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Get secret
env:
JSON: ${{ secrets.JSON_PASS }}
run: chmod +x ./decrypt.sh && ./decrypt.sh

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Build with Gradle
run: ./gradlew :app:bundleRelease --parallel

- name: Remove secret
run: rm -rf app/google-services.json

0 comments on commit 60a3896

Please sign in to comment.