File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Android CD
2
+
3
+ on :
4
+ push :
5
+ branches : ["release"]
6
+ pull_request :
7
+ branches : ["release"]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+
16
+ - name : Set up JDK 17
17
+ uses : actions/setup-java@v4
18
+ with :
19
+ java-version : ' 17'
20
+ distribution : ' temurin'
21
+ cache : gradle
22
+
23
+ - name : Gradle cache
24
+ uses : actions/cache@v4
25
+ with :
26
+ path : |
27
+ ~/.gradle/caches
28
+ ~/.gradle/wrapper
29
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30
+ restore-keys : |
31
+ ${{ runner.os }}-gradle-
32
+
33
+ - name : Set up local.properties
34
+ run : |
35
+ echo "sdk.dir=${{ secrets.SDK_DIR }}" >> local.properties
36
+ echo "CARE_PROD_BASE_URL=${{ secrets.CARE_PROD_BASE_URL }}" >> local.properties
37
+
38
+ - name : Decode keystore file
39
+ run : echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > ./app/upload-keystore.jks
40
+
41
+ - name : Create google-services.json
42
+ run : echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json
43
+
44
+ - name : Build AAB for Firebase
45
+ run : ./gradlew bundleRelease --stacktrace
46
+
47
+ - name : Build APK for Testing
48
+ run : ./gradlew assembleRelease --stacktrace
49
+
50
+ - name : Install Firebase CLI
51
+ run : curl -sL firebase.tools | bash
52
+
53
+ - name : Upload APK to Firebase App Distribution
54
+ env :
55
+ FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
56
+ run : |
57
+ firebase appdistribution:distribute app/build/outputs/apk/release/app-release.apk \
58
+ --app ${{ secrets.FIREBASE_APP_ID }} \
59
+ --release-notes "~새로운 릴리즈 버전이 날라왔어용~" \
60
+ --groups "세얼간이"
You can’t perform that action at this time.
0 commit comments