-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (66 loc) · 2.43 KB
/
android-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build & upload to Firebase App Distribution
on:
pull_request:
branches: [ android-main ]
types:
- closed
jobs:
build:
if: github.event.pull_request.merged == true
name: Firebase CD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Access GH_CLIENT_ID
run: |
echo GH_CLIENT_ID=\"$GH_CLIENT_ID\" > android/2023-emmsale/local.properties
shell: bash
env:
GH_CLIENT_ID: ${{ secrets.GH_CLIENT_ID }}
- name: Access KAKAO_APP_KEY
run: |
echo KAKAO_APP_KEY=\"$KAKAO_APP_KEY\" >> android/2023-emmsale/local.properties
shell: bash
env:
KAKAO_APP_KEY: ${{ secrets.KAKAO_APP_KEY }}
- name: Access KAKAO_SCHEME
run: |
echo KAKAO_SCHEME=\"$KAKAO_SCHEME\" >> android/2023-emmsale/local.properties
shell: bash
env:
KAKAO_SCHEME: ${{ secrets.KAKAO_SCHEME }}
- name: Access KAKAO_HOST
run: |
echo KAKAO_HOST=\"$KAKAO_HOST\" >> android/2023-emmsale/local.properties
shell: bash
env:
KAKAO_HOST: ${{ secrets.KAKAO_HOST }}
- name: Access GOOGLE_SERVICE
env:
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE }}
run: echo '${{ secrets.GOOGLE_SERVICE }}' > android/2023-emmsale/app/google-services.json
- name: build release
run: ./android/2023-emmsale/gradlew -p android/2023-emmsale 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: kerdy-team
file: android/2023-emmsale/app/build/outputs/apk/debug/app-debug.apk
- name: 슬랙에 apk 업로드 브로드캐스트
uses: 8398a7/action-slack@v3
with:
mention: 'here'
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
file_path: 'android/2023-emmsale/app/build/outputs/apk/debug/app-debug.apk'
file_type: 'apk'
initial_comment: '테스트 어플리케이션이 출시되었어요! QA 진행을 부탁드립니다 : )'
env:
SLACK_WEBHOOK_URL: ${{ secrets.DEPLOY_SLACK_WEBHOOK_URL }}
if: always()