Skip to content

Commit

Permalink
cd: fix fastlane pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneschepke committed Jul 28, 2024
1 parent 52322ac commit 287cf10
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,26 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

# Here we need to decode keystore.jks from base64 string and place it
# in the folder specified in the release signing configuration
- name: Decode Keystore
id: decode_keystore
uses: timheuer/[email protected]
with:
fileName: ${{ env.KEY_STORE_FILE }}
fileDir: ${{ env.KEY_STORE_LOCATION }}
encodedString: ${{ secrets.KEYSTORE }}

# create keystore path for gradle to read
- name: Create keystore path env var
run: |
store_path=${{ env.KEY_STORE_LOCATION }}${{ env.KEY_STORE_FILE }}
echo "KEY_STORE_PATH=$store_path" >> $GITHUB_ENV
- name: Create service_account.json
id: createServiceAccount
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json

- name: Deploy with fastlane
uses: ruby/setup-ruby@v1
with:
Expand Down
8 changes: 4 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ platform :android do

desc 'Deploy a new internal version to the Google Play Store'
lane :internal do
gradle(task: "clean :app:bundleGeneralRelease")
gradle(task: "clean bundleGeneralRelease")
upload_to_play_store(track: 'internal', skip_upload_apk: true)
end

desc "Deploy an alpha version to the Google Play"
lane :alpha do
gradle(task: "clean :app:bundleGeneralRelease")
gradle(task: "clean bundleGeneralRelease")
upload_to_play_store(track: 'alpha', skip_upload_apk: true)
end

desc "Deploy a beta version to the Google Play"
lane :beta do
gradle(task: "clean :app:bundleGeneralRelease")
gradle(task: "clean bundleGeneralRelease")
upload_to_play_store(track: 'beta', skip_upload_apk: true)
end

desc "Deploy a new version to the Google Play"
lane :production do
gradle(task: "clean :app:bundleGeneralRelease")
gradle(task: "clean bundleGeneralRelease")
upload_to_play_store(skip_upload_apk: true)
end

Expand Down

0 comments on commit 287cf10

Please sign in to comment.