Skip to content

Commit

Permalink
베타버전으로 빌드되는지 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Oct 23, 2024
1 parent 0b38671 commit 7d407d3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/Android_Release_CD.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Android PR Builder
name: Android Release New Version 🎉

on:
push:
tags:
- "v*.*.*"

jobs:
CI_Android_Release:
uses: ./.github/workflows/Android_Release_CI.yml
secrets: inherit
# CI_Android_Release:
# uses: ./.github/workflows/Android_Release_CI.yml
# secrets: inherit

Distribution_To_PlayStore:
name: CD Release Builder
runs-on: ubuntu-latest
needs: [ CI_Android_Release ]
# needs: [ CI_Android_Release ]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -77,39 +77,40 @@ jobs:
env:
KEY_STORE: ${{secrets.RELEASE_KEY_STORE}}
run: |
touch ./keystore/poke_key.jks
echo "$KEY_STORE" | base64 -d > ./keystore/poke_key.jks
touch ./keystore/poke_key.keystore
echo "$KEY_STORE" | base64 -d > ./keystore/poke_key.keystore
working-directory: android

- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: android

- name: Build Release APK
run: ./gradlew assembleRelease
working-directory: android

- name: Upload Release Build to Artifacts
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: android/app/build/outputs/apk/release/
if-no-files-found: error

- name: Create Github Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
android/app/build/outputs/apk/release/app-release.apk
# - name: Build Release APK
# run: ./gradlew assembleRelease
# working-directory: android
#
# - name: Upload Release Build to Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: release-artifacts
# path: android/app/build/outputs/apk/release/
# if-no-files-found: error
#
# - name: Create Github Release
# uses: softprops/action-gh-release@v1
# with:
# generate_release_notes: true
# files: |
# android/app/build/outputs/apk/release/app-release.apk

- name: Build release aab
run: ./gradlew bundleRelease
working-directory: android

- name: Upload artifact to Google Play Store
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: poke.rogue.helper
releaseFiles: android/app/build/outputs/bundle/release/app-release.aab
track: production
track: internal
2 changes: 1 addition & 1 deletion android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ android {
create("release") {
keyAlias = properties.getProperty("KEY_ALIAS")
keyPassword = properties.getProperty("KEY_PASSWORD")
storeFile = file("${project.rootDir.absolutePath}/keystore/poke_key.jks")
storeFile = file("${project.rootDir.absolutePath}/keystore/poke_key.keystore")
storePassword = properties.getProperty("STORE_PASSWORD")
}
}
Expand Down
4 changes: 2 additions & 2 deletions android/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ koin = "4.0.0"
minSdk = "26"
robolectric = "4.13"
targetSdk = "34"
appVersion = "9.0.1"
versionCode = "901000"
appVersion = "9.0.2"
versionCode = "901002"
agp = "8.3.2"

# kotlin
Expand Down

0 comments on commit 7d407d3

Please sign in to comment.