Skip to content

Commit

Permalink
feat: ./gradlew assembleDebug appDistributionUploadDebug 로 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-ji-hoon committed Jul 29, 2024
1 parent 2be1581 commit 2947d59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
10 changes: 5 additions & 5 deletions .github/actions/firebase-app-distribution/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ runs:
- name: upload artifact to Firebase App Distribution
uses: wzieba/[email protected]
with:
appId: ${{ inputs.appId }}
serviceCredentialsFileContent: ${{ inputs.serviceCredentialsFile }}
groups: ${{ inputs.groups }}
file: ${{ inputs.file }}
debug: ${{ inputs.debug }}
appId: ${{ input.appId }}
serviceCredentialsFileContent: ${{ input.serviceCredentialsFile }}
groups: ${{ input.groups }}
file: ${{ input.file }}
debug: ${{ input.debug }}
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 2947d59

Please sign in to comment.