-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] App distribution CI CD Added
[Feature] App distribution CI CD Added
- Loading branch information
Showing
8 changed files
with
138 additions
and
10 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,80 @@ | ||
name: Build & upload to Firebase App Distribution | ||
|
||
on: | ||
push: | ||
branches: [ dev ] | ||
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: 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 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: winey-team | ||
# file: app/build/outputs/apk/release/app-release-unsigned.apk | ||
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 |
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Mon Jul 10 17:33:03 KST 2023 | ||
#Mon Dec 04 01:21:47 KST 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |