Skip to content

Commit

Permalink
fix: android-deploy.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
easyhz authored Aug 15, 2024
1 parent 9d2ee9e commit e2b0cb4
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/android-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
runs-on: ubuntu-latest
env:
LOCAL_PROPERTIES_CONTENTS: ${{ secrets.LOCAL_PROPERTIES_CONTENTS }}
FLAVOR: "prod" # 여기서 FLAVOR를 "prod"로 설정합니다.

steps:
- uses: actions/checkout@v4
- name: set up JDK 17
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
Expand All @@ -35,13 +36,21 @@ jobs:

- name: Build Release AAB
id: buildRelease
run: ./gradlew bundleRelease
run: ./gradlew bundle${{ env.FLAVOR.capitalize() }}Release

- name: Verify AAB file exists
run: |
AAB_FILE=app/build/outputs/bundle/${{ env.FLAVOR }}Release/app-${{ env.FLAVOR }}-release.aab
if [ ! -f $AAB_FILE ]; then
echo "Error: AAB file not found at $AAB_FILE"
exit 1
fi
- name: Sign AAB
id: sign
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/release
releaseDirectory: app/build/outputs/bundle/${{ env.FLAVOR }}Release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
Expand All @@ -57,6 +66,6 @@ jobs:
with:
serviceAccountJson: service_account.json
packageName: com.easyhz.noffice
releaseFile: app/build/outputs/bundle/release/app-release.aab
releaseFile: app/build/outputs/bundle/${{ env.FLAVOR }}Release/app-${{ env.FLAVOR }}-release.aab
track: beta
whatsNewDirectory: whatsnew/

0 comments on commit e2b0cb4

Please sign in to comment.