Skip to content

Commit

Permalink
Workflow: Avoid build error due to missing google-services.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mardous committed Aug 7, 2024
1 parent 90aa545 commit a148be5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
java-version: 17
cache: gradle

- name: Create Google Services JSON File
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA | base64 -di > ./app/google-services.json
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Lint
Expand All @@ -33,8 +37,11 @@ jobs:
distribution: 'zulu'
cache: gradle

- name: Create Google Services JSON File
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA | base64 -di > ./app/google-services.json
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- uses: gradle/gradle-build-action@v3
- name: Build with Gradle
run: ./gradlew app:assemble
run: ./gradlew build -x uploadCrashlyticsMappingFileRelease

0 comments on commit a148be5

Please sign in to comment.