-
Notifications
You must be signed in to change notification settings - Fork 1
[feat/ci_cd_firebase]: Firebase 테스트 배포를 위한 workflow 추가 #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
877f0e8
[fix]: TimeTest.kt 수정
kez-lab b42767a
[fix]: git ignore 수정
kez-lab 7b85c12
[fix]: lint 수정
kez-lab 77d7744
[fix]: PR workflow 수정
kez-lab 1383818
[fix]: lint 에러 수정
kez-lab 3fbdea4
[feat]: 배포 자동화 추가
kez-lab f7516f4
[feat]: 릴리즈 노트 추가
kez-lab 9453a4c
[feat]: 릴리즈 사이닝 키 추가
kez-lab ccfc894
[feat]: local properties 추가
kez-lab 1af17ba
[feat]: google-service 파일 추가
kez-lab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,74 @@ | ||
| name: Release Firebase Distribution Workflow | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - release/** | ||
|
|
||
| jobs: | ||
| build-and-release: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Setup JDK | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
|
|
||
| - name: Decode keystore | ||
| run: echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 --decode > keystore/release.keystore.jks | ||
|
|
||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x ./gradlew | ||
|
|
||
| - name: Add Local Properties | ||
| env: | ||
| KAKAO_API_KEY: ${{ secrets.KAKAO_API_KEY }} | ||
| HMH_DEV_BASE_URL: ${{ secrets.HMH_DEV_BASE_URL }} | ||
| HMH_PROD_BASE_URL: ${{ secrets.HMH_PROD_BASE_URL }} | ||
| AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }} | ||
| KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | ||
| KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
| STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} | ||
| run: | | ||
| echo kakaoApiKey=$KAKAO_API_KEY >> ./local.properties | ||
| echo amplitudeApiKey=$AMPLITUDE_API_KEY >> ./local.properties | ||
| echo keyAlias=$KEY_ALIAS >> ./local.properties | ||
| echo keyPassword=$KEY_PASSWORD >> ./local.properties | ||
| echo storePassword=$STORE_PASSWORD >> ./local.properties | ||
| echo hmhDevBaseUrl=$HMH_DEV_BASE_URL >> ./local.properties | ||
| echo hmhProdBaseUrl=$HMH_PROD_BASE_URL >> ./local.properties | ||
|
|
||
| - name: Access Firebase Service | ||
| run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json | ||
|
|
||
| - name: Cache Gradle dependencies | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: ~/.gradle/caches | ||
| key: gradle-cache-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
| restore-keys: | | ||
| gradle-cache-${{ runner.os }}- | ||
|
|
||
| - name: Build APK | ||
| run: ./gradlew assembleRelease | ||
|
|
||
| - name: Verify APK Existence | ||
| run: test -f app/build/outputs/apk/release/app-release.apk | ||
|
|
||
| - name: Generate Release Notes | ||
| id: release-notes | ||
| run: echo "RELEASE_NOTES=$(git log -1 --pretty=%B)" >> $GITHUB_ENV | ||
|
|
||
| - name: Upload to Firebase App Distribution | ||
| uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
| with: | ||
| appId: ${{ secrets.FIREBASE_APP_ID }} | ||
| serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
| groups: hmh-team | ||
| file: app/build/outputs/apk/release/app-release.apk | ||
| releaseNotes: ${{ env.RELEASE_NOTES }} |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ captures/ | |
| .cxx/ | ||
| *.apk | ||
| output.json | ||
| output-metadata.json | ||
|
|
||
| # IntelliJ | ||
| *.iml | ||
|
|
||
This file contains hidden or 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
kez-lab marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,4 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <issues format="6" by="lint 8.1.4" type="baseline" client="gradle" dependencies="false" name="AGP (8.1.4)" variant="fatal" version="8.1.4"> | ||
|
|
||
| </issues> |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.