Skip to content

Chore : App Distribution Test #2

Chore : App Distribution Test

Chore : App Distribution Test #2

name: Build & upload to Firebase App Distribution
on:
push:
branches: [ feature/app-distribution-cicd ]
workflow_dispatch: # 수동 실행 옵션 (생략)
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: grant permission for gradlew
run: chmod +x ./gradlew
shell: bash
- name: build release
run: ./gradlew assembleDebug
- name: upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID}}
# serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
# groups: testers
file: app/build/outputs/apk/debug/app-debug.apk
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Setup JDK 11
# uses: actions/setup-java@v3
# with:
# distribution: "zulu"
# java-version: 11
#
# - name: Setup Android SDK
# uses: android-actions/setup-android@v2
#
# - name: Grant execute permission for gradlew
# run: chmod +x gradlew
#
# - name: Decrypt secrets.tar.gpg
# run: gpg --quiet --batch --yes --always-trust --decrypt --passphrase="$SECRET_GPG_PASSWORD" --output secrets.tar secrets.tar.gpg
# env:
# SECRET_GPG_PASSWORD: ${{ secrets.SECRET_GPG_PASSWORD }}
#
# - name: Unzip secrets.tar
# run: tar xvf secrets.tar
#
# - name: Build release universal apk
# run: ./gradlew presentation:packageReleaseUniversalApk
#
# - name: Upload apk to Firebase App Distribution
# uses: wzieba/Firebase-Distribution-Github-Action@v1
# with:
# appId: ${{ secrets.FIREBASE_APP_ID }}
# token: ${{ secrets.FIREBASE_TOKEN }}
# groups: runnerbe
# file: presentation/build/outputs/universal_apk/release/presentation-release-universal.apk
# releaseNotesFile: documents/release-note/default-note.txt