[Fix] Github Action으로 APK 빌드 후 슬랙 업로드 #348
Draft
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.
Summary
Github Action에서 브랜치, Build Variant를 지정해 빌드 요청하면 슬랙으로 APK를 업로드할 수 있게 수정했습니다.
Release 모드의 Signed APK를 기존 방식이 아니라 gradle task로 만들 수 있도록 수정했습니다.
TODO: Firebase App Distribution을 사용해 자동으로 베타 테스터들에게 APK 배포하기
Describe your changes
Issue
To reviewers
이 PR이 머지되면 앞으로 빌드할 때 local.properties 를 제가 수정한 노션대로 다시 변경해야 합니다.
KEY_ALIAS, KEY_PASSWORD, KEYSTORE_FILE, KEYSTORE_PASSWORD 라는 프로퍼티를 새로 만들고 기존 빌드할 때 사용했던 값을 집어 넣으면 됩니다.
google-services.json처럼 eatssu.keystore라는 파일에 Keystore 파일을 두면 자동으로 Signed APK를 만들 수 있습니다.
Github Action Secret에 KEY_ALIAS, KEY_PASSWORD, KEYSTORE_PASSWORD와 Base64로 Keystore 값을 인코딩한 KEYSTORE_CONTENT를 추가했습니다. 이후 Github Action이 실행되면서 KEYSTORE_CONTENT의 값을 디코딩 한 후, eatssu.keystore에 저장합니다. google-services.json과 같은 방식으로 제작했습니다.