Skip to content

Commit

Permalink
💚 edit local.properties variable to ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkim2689 committed Jul 25, 2024
1 parent 24fd51b commit 8f91796
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/an-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
BASE_URL_API: ${{ secrets.BASE_URL_API }}
run: |
echo google_web_client_id=\"$GOOGLE_WEB_CLIENT_ID\" > ./android/local.properties
echo base_url_dev=\"$BASE_URL_DEV\" > ./android/local.properties
echo base_url_release=\"$BASE_URL_API\" > ./android/local.properties
echo base_url_dev=\"$BASE_URL_DEV\" >> ./android/local.properties
echo base_url_release=\"$BASE_URL_API\" >> ./android/local.properties
- name: Run ktLint
run: ./gradlew ktlintCheck
working-directory: ./android
Expand All @@ -51,10 +51,12 @@ jobs:
- name: Set up environment variable for BuildConfig
env:
GOOGLE_WEB_CLIENT_ID: ${{ secrets.GOOGLE_WEB_CLIENT_ID }}
BASE_URL_DEV: ${{ secrets.BASE_URL_DEV }}
BASE_URL_API: ${{ secrets.BASE_URL_API }}
run: |
echo google_web_client_id=\"$GOOGLE_WEB_CLIENT_ID\" > ./android/local.properties
echo base_url_dev=\"$BASE_URL_DEV\" > ./android/local.properties
echo base_url_release=\"$BASE_URL_API\" > ./android/local.properties
echo base_url_dev=\"$BASE_URL_DEV\" >> ./android/local.properties
echo base_url_release=\"$BASE_URL_API\" >> ./android/local.properties
- name: Build and test
run: ./gradlew build test
working-directory: ./android

0 comments on commit 8f91796

Please sign in to comment.