Skip to content

Commit

Permalink
Add configuration cache encryption key for GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Jan 24, 2024
1 parent 49bc12d commit a3d9488
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

- name: Assemble dev debug APK and signed release App Bundle
run: ./gradlew app:assembleDevDebug app:bundleProdRelease -Pandroid.experimental.settings.executionProfile=ci
Expand Down Expand Up @@ -92,6 +93,7 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

- name: Run unit tests
run: ./gradlew test jvmTest -PslimTests
Expand All @@ -116,6 +118,7 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

- name: Run detekt, ktlint and Android Lint
run: |
Expand Down Expand Up @@ -157,6 +160,7 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

- name: Publish dev build to Firebase App Distribution
run: ./gradlew processDevDebugGoogleServices appDistributionUploadDevDebug
Expand Down Expand Up @@ -202,6 +206,7 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

- name: Publish release App Bundle to Play Store
run: ./gradlew publishBundle --artifact-dir android/app/build/outputs/bundle/prodRelease
Expand Down

0 comments on commit a3d9488

Please sign in to comment.