Skip to content

Commit

Permalink
Set up auto deployment-iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s committed Apr 4, 2024
1 parent 6fa40d7 commit f8dc064
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/android_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/ setup-java@v1
uses: actions/setup-java@v1
with:
java-version: 17.0.6
cache: 'gradle'
Expand All @@ -31,7 +31,7 @@ jobs:
bundle-cache: true

- name: Retrieve the secret and decode it to file
run: .github/script/ install_secret_script.sh
run: .github/script/install_secret_script.sh

- name: Deploy Internally
env:
Expand All @@ -51,6 +51,13 @@ jobs:
buildName="${versionValue[0]}.${versionValue[1]}.${{ github.run_number }}"
echo "Generating android build $buildName $buildNumber"
echo $APKSIGN_KEYSTORE_BASE64 | base64 -di > release.jks
export APKSIGN_KEYSTORE = `pwd`/release.jks
cd android
gem install bundler -v 2.4.22
bundle install
echo $APP_PAY_SERVICE_JSON > google_play_api_key.json
bundle exec fastlane supply init --track internal
bundle exec fastlane upload_internal versionName:$buildName versionCode:$buildNumber
Expand Down
10 changes: 5 additions & 5 deletions khelo/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ android {


signingConfigs {
if (System.getenv()["CI"]){
if (System.getenv("APKSIGN_KEYSTORE")!= null){
release {
storeFile file(System.getenv()["CM_KEYSTORE_PATH"])
storePassword System.getenv()["CM_KEYSTORE_PASSWORD"]
keyAlias System.getenv()["CM_KEY_ALIAS"]
keyPassword System.getenv()["CM_KEY_PASSWORD"]
storeFile file(System.getenv("APKSIGN_KEYSTORE"))
storePassword System.getenv("APKSIGN_KEYSTORE_PASS")
keyAlias System.getenv("APKSIGN_KEY_ALIAS")
keyPassword System.getenv("APKSIGN_KEY_PASS")
}
} else {
release {
Expand Down

0 comments on commit f8dc064

Please sign in to comment.