Merge pull request #16 from StudyProject-NLI/BeneLocalNewUI #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing APK | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Create local gradle properties files | |
run: touch local.properties | |
- name: Add Google Maps API Key | |
run: echo "MAPS_API_KEY=${{secrets.MAPS_API_KEY}}" >> local.properties | |
# Here we need to decode keystore.jks from base64 string and place it | |
# in the folder specified in the release signing configuration | |
- name: Decode Keystore | |
id: decode_keystore | |
uses: timheuer/[email protected] | |
with: | |
fileName: 'android_keystore.jks' | |
fileDir: '/home/runner/work/<<project name>>/<<project name>>/app/keystore/' | |
encodedString: ${{ secrets.SIGNING_KEYSTORE }} | |
- name: Build debug APK | |
run: ./gradlew build -x lint -x lintVitalRelease | |
env: | |
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | |
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} | |
- name: Upload APK | |
uses: actions/[email protected] | |
with: | |
name: app-debug-build | |
path: app/build/outputs/apk/debug/app-debug.apk | |