Skip to content

Commit

Permalink
fix: Fix the bugs while generating app files via github
Browse files Browse the repository at this point in the history
  • Loading branch information
harinath01 committed May 10, 2022
1 parent 467fcec commit c686873
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/generate_app_files.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate App File
name: Generate AAB and APK

on:
workflow_dispatch:
Expand All @@ -13,7 +13,7 @@ on:
required: true

keystore_password:
description: 'Keystore file's password'
description: "Keystore file's password"
required: true

key_alias:
Expand All @@ -33,7 +33,8 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v2
ref: ${{ github.event.inputs.branch_name }}
with:
ref: ${{ github.event.inputs.branch_name }}

- name: Setup JDK 11
uses: actions/setup-java@v2
Expand Down Expand Up @@ -76,11 +77,8 @@ jobs:
run: |
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
bundle exec fastlane generate_app_files \
keystore_file_path:${{ github.event.inputs.keystore_file_path }} \
keystore_password:${{ github.event.inputs.keystore_password }} \
key_alias:${{ github.event.inputs.key_alias }} \
key_password:${{ github.event.inputs.key_password }}
bundle config --global set deploy_platform_default x86_64-linux
bundle exec fastlane generate_app_file keystore_file_path:${{ github.event.inputs.keystore_file_path }} keystore_password:${{ github.event.inputs.keystore_password }} key_alias:${{ github.event.inputs.key_alias }} key_password:${{ github.event.inputs.key_password }}
- name: Upload AAB
uses: actions/upload-artifact@v2
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,11 @@ GEM
PLATFORMS
x86-mingw32
x86_64-darwin-21
x86_64-linux

DEPENDENCIES
fastlane
fastlane-plugin-download_file

BUNDLED WITH
2.3.9
2.3.10
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ desc "Generate Android App Bundle"
lane :generate_app_file do |signing_config|
download_file(url: signing_config[:keystore_file_path], destination_path: './app/keystore.jks')
gradle(
task: ["bundleRelease", "assembleRelease", "assembleDebug"],
tasks: ["bundleRelease", "assembleRelease", "assembleDebug"],
print_command: false,
properties: {
"android.injected.signing.store.file" => "%s/app/keystore.jks"%File.expand_path("..", Dir.pwd),
Expand Down

0 comments on commit c686873

Please sign in to comment.