fix: fastlane AAB 업로드 경로 오류 수정 #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android Release (Tag -> Play Internal) | |
| on: | |
| push: | |
| tags: | |
| - 'android-v*' | |
| jobs: | |
| android-internal: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler: '4.0.3' | |
| bundler-cache: true | |
| - name: Install JS deps | |
| run: npm ci | |
| # ✅ 태그에서 버전 뽑기: android-v1.2.0 -> 1.2.0 | |
| - name: Extract version from tag | |
| run: | | |
| TAG="${GITHUB_REF_NAME}" | |
| echo "CI_VERSION_NAME=${TAG#android-v}" >> $GITHUB_ENV | |
| echo "CI_VERSION_CODE=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | |
| # ✅ keystore 생성 | |
| - name: Decode keystore | |
| env: | |
| KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }} | |
| run: | | |
| echo "$KEYSTORE_BASE64" | base64 --decode > android/app/dasii-release-key.keystore | |
| # ✅ build.gradle의 signingConfigs.release는 "project.hasProperty(MYAPP_...)"로 읽으니까 | |
| # gradle.properties를 런타임에 만들어서 주입해줌 | |
| - name: Create android/gradle.properties for signing | |
| run: | | |
| cat >> android/gradle.properties << 'EOF' | |
| MYAPP_RELEASE_STORE_FILE=dasii-release-key.keystore | |
| MYAPP_RELEASE_STORE_PASSWORD=${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | |
| MYAPP_RELEASE_KEY_ALIAS=${{ secrets.ANDROID_KEY_ALIAS }} | |
| MYAPP_RELEASE_KEY_PASSWORD=${{ secrets.ANDROID_KEY_PASSWORD }} | |
| EOF | |
| - name: Build & Upload (Fastlane) | |
| env: | |
| SUPPLY_JSON_KEY_DATA: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} | |
| CI_VERSION_NAME: ${{ env.CI_VERSION_NAME }} | |
| CI_VERSION_CODE: ${{ env.CI_VERSION_CODE }} | |
| # ✅ Expo public env | |
| EXPO_PUBLIC_API_URL: ${{ secrets.EXPO_PUBLIC_API_URL }} | |
| EXPO_PUBLIC_CDN_PREFIX: ${{ secrets.EXPO_PUBLIC_CDN_PREFIX }} | |
| EXPO_PUBLIC_SENTRY_DSN: ${{ secrets.EXPO_PUBLIC_SENTRY_DSN }} | |
| # ✅ Sentry sourcemap upload | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
| SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
| SENTRY_URL: ${{ secrets.SENTRY_URL }} | |
| # ✅ kakao | |
| EXPO_PUBLIC_KAKAO_REST_API_KEY: ${{ secrets.EXPO_PUBLIC_KAKAO_REST_API_KEY }} | |
| EXPO_PUBLIC_KAKAO_NATIVE_KEY: ${{ secrets.EXPO_PUBLIC_KAKAO_NATIVE_KEY }} | |
| EXPO_PUBLIC_KAKAO_REDIRECT_URI: ${{ secrets.EXPO_PUBLIC_KAKAO_REDIRECT_URI }} | |
| run: | | |
| cd android | |
| bundle exec fastlane internal |