Skip to content

Commit

Permalink
Merge branch 'dev' into feat/home/64-task-api
Browse files Browse the repository at this point in the history
  • Loading branch information
easyhz committed Aug 21, 2024
2 parents 247c32b + 54d2606 commit 3b6dadb
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
KEYSTORE_PROPERTIES_CONTENTS: ${{ secrets.KEYSTORE_PROPERTIES_CONTENTS }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
GOOGLE_SERVICES_JSON_PROD: ${{ secrets.GOOGLE_SERVICES_JSON_PROD }}

steps:
- uses: actions/checkout@v4
Expand All @@ -38,10 +39,22 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Create google-services.json directory for dev
run: mkdir -p app/src/dev

- name: Create google-services.json directory for debug
run: mkdir -p app/src/debug

- name: Create google-services.json
run: echo "$GOOGLE_SERVICES_JSON" > app/google-services.json
- name: Create google-services.json for debug
run: echo "$GOOGLE_SERVICES_JSON" > app/src/debug/google-services.json

- name: Create google-services.json directory for devDebug
run: mkdir -p app/src/devDebug

- name: Create google-services.json for devDebug
run: echo "$GOOGLE_SERVICES_JSON" > app/src/devDebug/google-services.json

- name: Decode and create keystore.jks
run: echo $SIGNING_KEY | base64 --decode > app/keystore.jks

Expand All @@ -53,8 +66,8 @@ jobs:
run: |
echo "$KEYSTORE_PROPERTIES_CONTENTS" > keystore.properties
- name: Build with Gradle
run: ./gradlew build
# - name: Build with Gradle
# run: ./gradlew build

# - name: Build debug
# run: ./gradlew assembleDebug
- name: Build debug with Gradle
run: ./gradlew assembleDevDebug

0 comments on commit 3b6dadb

Please sign in to comment.