Skip to content

Commit

Permalink
feat: deploy 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-ji-hoon committed Jul 29, 2024
1 parent 604a967 commit 635cc01
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/deploy_to_firebase_app_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- feature/cat-101
workflow_dispatch:
env:
jobs:
firebase-app-distribution:
environment: Debug
Expand All @@ -19,22 +20,12 @@ jobs:
with:
google-services: ${{ secrets.GOOGLE_SERVICES }}

- name: Build App
run: ./gradlew ":app:assembleDebug"

- name: Set APK path
id: apk
run: |
echo "NAME=$(find ./ -type f -name "*.apk" -print -quit)" >> $GITHUB_OUTPUT
- name: Create Firebase Credentials
run: |
echo -n "${{ secrets.FIREBASE_CREDENTIALS }}" | base64 --decode > firebase_credentials.json
- name: Upload App Artifact To Firebase App Distribution
uses: ./.github/actions/firebase-app-distribution
timeout-minutes: 10
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFile: ./firebase_credentials.json
groups: 뽀모냥
file: ${{ steps.apk.outputs.NAME }}
debug: true
- name: Build and Upload App to Firebase App Distribution
run: ./gradlew assembleDebug appDistributionUploadDebug \
-PfirebaseServiceCredentials=./firebase_credentials.json \
-PfirebaseAppId=${{ secrets.FIREBASE_APP_ID }} \
-PfirebaseDistributionGroups=뽀모냥

0 comments on commit 635cc01

Please sign in to comment.