-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (47 loc) · 1.71 KB
/
deploy-release.yml
File metadata and controls
55 lines (47 loc) · 1.71 KB
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
name: Deploy to Play Store
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy_release:
name: Build & Upload to Play Store
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '4.0.0'
bundler-cache: true
- name: Create Secrets Files
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
RELEASE_KEYSTORE_BASE64: ${{ secrets.RELEASE_KEYSTORE_BASE64 }}
PLAY_STORE_JSON_KEY: ${{ secrets.PLAY_STORE_JSON_KEY }}
run: |
printf "%s" "$GOOGLE_SERVICES_JSON" > app/google-services.json
printf "%s" "$LOCAL_PROPERTIES" > local.properties
mkdir -p keystore
echo "$RELEASE_KEYSTORE_BASE64" | base64 --decode > keystore/hilingual-release-key.jks
printf "%s" "$PLAY_STORE_JSON_KEY" > play_store_api_key.json
- name: Build Release Bundle
run: ./gradlew bundleRelease
- name: Upload to Play Store
run: bundle exec fastlane android upload_production
env:
PLAY_STORE_JSON_KEY_FILE: "${{ github.workspace }}/play_store_api_key.json"
# [수정] AAB 파일 절대 경로 환경변수 추가
PLAY_STORE_AAB_FILE: "${{ github.workspace }}/app/build/outputs/bundle/release/app-release.aab"