-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8fe90a
commit 28e3bbc
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'Firebase App Distribution' | ||
description: 'Uploads artifacts to Firebase App Distribution' | ||
inputs: | ||
appId: | ||
description: 'Check App ID' | ||
required: true | ||
serviceCredentialsFile: | ||
description: 'Service credentials file' | ||
required: true | ||
file: | ||
description: 'Artifact to upload (.apk or .ipa)' | ||
required: true | ||
groups: | ||
description: 'Distribution groups' | ||
required: true | ||
debug: | ||
description: 'Flag that can included to print verbose log output.' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: upload artifact to Firebase App Distribution | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ input.appId }} | ||
serviceCredentialsFileContent: ${{ input.serviceCredentialsFile }} | ||
groups: ${{ input.groups }} | ||
file: ${{ input.file }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "[CD] Deploy Firebase App Distribution" | ||
|
||
on: | ||
push: | ||
branches: | ||
- feature/cat-101 | ||
workflow_dispatch: | ||
env: | ||
jobs: | ||
firebase-app-distribution: | ||
environment: Debug | ||
name: Firebase App Distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Development Environment | ||
uses: ./.github/actions/setup-development-environment | ||
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 |