Chore : App Distribution Test #9
Workflow file for this run
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: Build & upload to Firebase App Distribution | |
on: | |
push: | |
branches: [ feature/app-distribution-cicd ] | |
workflow_dispatch: # 수동 실행 옵션 (생략) | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
LOCAL_PROPERTIES_CONTENTS: ${{ secrets.LOCAL_PROPERTIES_CONTENTS }} | |
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
# - 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: Create local.properties | |
run: echo "$LOCAL_PROPERTIES_CONTENTS" > local.properties | |
- name: Create google-services.json | |
run: echo "$GOOGLE_SERVICES_JSON" > app/google-services.json | |
- name: build release | |
run: ./gradlew assembleRelease | |
- 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: winey-team | |
file: app/build/outputs/apk/release/app-release-unsigned.apk | |
# file: app/build/outputs/apk/release/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 |