Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
ci(secret): add google services file generation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaBrighi committed May 3, 2023
1 parent efa7c06 commit 3877885
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: google services
run: |
echo $GOOGLE_SERVICES > app/google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
- name: Build with Gradle
run: ./gradlew assembleDebug

Expand All @@ -40,6 +44,11 @@ jobs:
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: google services
run: |
echo $GOOGLE_SERVICES > app/google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
- name: Unit test with Gradle
run: ./gradlew testDebugUnitTest

Expand Down Expand Up @@ -72,6 +81,11 @@ jobs:
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: google services
run: |
echo $GOOGLE_SERVICES > app/google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
- name: Device test with Gradle
uses: ReactiveCircus/android-emulator-runner@v2
with:
Expand Down Expand Up @@ -108,6 +122,11 @@ jobs:
run: echo "$SIGNING_KEY" | base64 -d > key.jks
env:
SIGNING_KEY: ${{secrets.SIGNING_KEY}}
- name: google services
run: |
echo $GOOGLE_SERVICES > app/google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.DEPLOYMENT_TOKEN}}
Expand Down

0 comments on commit 3877885

Please sign in to comment.