Skip to content

Commit

Permalink
Create upload-app-bundle-firebase.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jk2pr committed Sep 3, 2021
1 parent d483270 commit 46b46ac
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/upload-app-bundle-firebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build Release App Bundle

on:
workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: create keystore.properties
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
run: echo "$KEYSTORE" > ./keystore.properties
- name: create gradle.properties
env:
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
run: echo "$GRADLE_PROPERTIES" > ./gradle.properties
- name: create google_service.json
env:
GOOGLE_SERVICE_JSON: ${{ secrets.GOOGLE_SERVICE_JSON }}
run: echo "$GOOGLE_SERVICE_JSON" > ./app/google-services.json
- name: Install NDK
run: echo "y" | sudo /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Clean
run: ./gradlew clean
- name: LintCheck
run: ./gradlew ktlintCheck
- name: Run Test
run: ./gradlew assembleDebugAndroidTest
- name: build prod
run: ./gradlew app:bundleRelease --stacktrace
- name: Upload AAB
uses: actions/upload-artifact@v2
with:
name: aab
path: app/build/outputs/apk/debug/**.aab

0 comments on commit 46b46ac

Please sign in to comment.