Skip to content

Merge pull request #97 from team-JMT/feat/upgrade_web_bridge #289

Merge pull request #97 from team-JMT/feat/upgrade_web_bridge

Merge pull request #97 from team-JMT/feat/upgrade_web_bridge #289

Workflow file for this run

name: Android CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
apk:
name: Generate APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Create google-service
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./presentation/google-services.json
- name: Create Local Properties
run: echo '${{ secrets.LOCAL_PROPERTIES }}' > ./local.properties
- name: Set up Keystore
run: |
echo "${{ secrets.KEY_STORE }}" | base64 --decode > jmtKey
- name: Build release APK
run: bash ./gradlew assembleRelease --stacktrace
env:
SIGNING_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app
path: app/build/outputs/apk/release
- name: Slack - Upload APK
uses: MeilCli/slack-upload-file@v3
with:
slack_token: ${{ secrets.SLACK_TOKEN }}
channel_id: ${{ secrets.SLACK_CHANNEL }}
initial_comment: 'APK File Upload'
file_path: 'app/build/outputs/apk/release/app-release.apk'
file_name: 'app-release.apk'
file_type: 'apk'
- name: Clean up Keystore
run: rm jmtKey