Skip to content
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

Android Firbase App 배포 자동화 #135

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/android-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,20 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: ./android/app/build/outputs/apk/release/
path: android/app/build/outputs/apk/release/
if-no-files-found: error

- name: Create Github Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
./android/app/build/outputs/apk/release/*.apk
android/app/build/outputs/apk/release/app-release.apk

- 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: testers
file: android/app/build/outputs/apk/release/app-release.apk
2 changes: 1 addition & 1 deletion android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {
minSdk = 26
targetSdk = 33
versionCode = 1
versionName = "1.0.0"
versionName = "0.0.1"
Comment on lines 23 to +24
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

versionCode가 동일하면 다운로드가 안 될 수도 있어
https://gist.github.com/michaelbel/d6a10d13e8e3e842e56965da0e8005dc
이런 코드 사용하면 versionCode를 커밋 개수로 자동으로 넣어줄 수 있는데, 수동으로 버전업하기 귀찮으면 이런 코드 사용해볼 수 있을 듯

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

versionCode를 왜 커밋 갯수로 하징??


testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down