Comments (2)
While I use
maierj/[email protected]
, rubybundle-cache
is still recommended?- uses: ruby/setup-ruby@v1 with: ruby-version: "2.7.2" bundler-cache: true # runs 'bundle install' and caches installed gems automatically
I'm not sure what you're inquiring about but I was having a similar bundle problem and after adding the lintOption under "buildTypes { release {..." of android/app/build.grade, this led which led to another issue with fastlane below:
buildTypes {
release {
lintOptions {
disable 'InvalidPackage'
disable "Instantiatable"
checkReleaseBuilds false
abortOnError false
}
}
}
I seem to have an issue with a fastlane error per this github_action_log via https://github.com/lessimp/lessimp_logs.git that remains although the service_account_key.json is present via the path it says that it's not, "Could not find service account json file at path '/home/runner/work/lessimp/lessimp/android/service_account_key.json'"
Here the issue tracker https://issuetracker.google.com/issues/234820023 as well as another follow-up from another filed issue with the flutter team - flutter/flutter#105393
The scripts/decrypt_android_secrets.sh
gpg --quiet --batch --yes --decrypt --passphrase="$ANDROID_KEYS_SECRET_PASSPHRASE" \ --output android/key_files.zip android/key_files.zip.gpg && cd android && jar xvf key_files.zip && cd -
ls -d $PWD/android/*
The android.yml file on GitHub Actions:
name: Playstore deployment
on:
push:
branches:
- main
jobs:
#CI
build_android:
name: Building Android
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 12.x
- name: Decrypt Android keys
run: sh ./.github/scripts/decrypt_android_secrets.sh
env:
ANDROID_KEYS_SECRET_PASSPHRASE: ${{ secrets.ANDROID_KEYS_SECRET_PASSPHRASE }}
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: 3.0.1
- name: Install Flutter dependencies
run: flutter pub get
# Add build runner commands here if you have any
- name: Build the APK
run: flutter build appbundle
- name: Upload artifact to Github
uses: actions/upload-artifact@v1
with:
name: release-aab
path: build/app/outputs/bundle/release/app-release.aab
#CD
deploy_android:
name: Deploying to playstore
runs-on: ubuntu-latest
needs: [build_android]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 12.x
- name: Decrypt Android keys
run: sh ./.github/scripts/decrypt_android_secrets.sh
env:
ANDROID_KEYS_ZIP_PASSPHRASE: ${{ secrets.ANDROID_KEYS_ZIP_PASSPHRASE }}
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: 3.0.1
- run: flutter pub get
- run: flutter build appbundle
- name: Upload artifact to Github
uses: actions/upload-artifact@v1
with:
name: release-aab
path: build/app/outputs/bundle/release/app-release.aab
- name: Run Fastlane
uses: maierj/[email protected]
with:
lane: closed_beta
subdirectory: android
Appfile:
json_key_file("/Users/ken/documents/projects/lessimp/android/service_account_key.json")
json_key_file "/Users/ken/documents/projects/lessimp/android/service_account_key.json"
json_key_file("service_account_key.json")
package_name("com.android.app")
Fastfile:
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Build"
lane :build do
gradle(task: "clean assembleRelease")
end
desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
gradle(task: "clean assembleRelease")
crashlytics
# sh "your_script.sh"
# You can also use other beta testing services here
end
desc "Deploy a new version to the Google Play"
lane :closed_beta do
begin
gradle(task: "clean assembleRelease")
# gradle(tasks: ["assembleRelease", "bundleRelease"])
gradle(
task: "bundle",
build_type: 'Release'
)
upload_to_play_store(
track: 'beta',
aab: '../build/app/outputs/bundle/release/app-release.apk',
aab: '../build/app/outputs/bundle/release/app-release.aab',
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
release_status: "draft",
version_code: flutter_version()["version_code"],
)
end
end
end
lintOption seems to have suppressed ':app:validateSigningRelease' following the ':app:lintVitalRelease' problem.
running the validate_play_store_json_key json_key has confirmed that there may be a ruby/bundle related issue as before - http://docs.fastlane.tools/getting-started/android/setup/#collect-your-google-credentials:
% fastlane run validate_play_store_json_key json_key:/Users/DevAccount/StudioProjects/lessimp/android/service_account_key.json
/Library/Ruby/Site/2.6.0/rubygems.rb:265:in find_spec_for_exe': can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException) from /Library/Ruby/Site/2.6.0/rubygems.rb:284:in activate_bin_path'
from /usr/local/bin/fastlane:23:in `'
Running GitHub Action with Fastlane continues to err on finding the service_account_key.json file that is present because I can run it locally now after fixing my ruby issue with Chruby:
ken@Kens-MBP android % bundle exec fastlane run validate_play_store_json_key json_key:/Users/ken/documents/projects/lessimp/android/service_account_key.json
[✔] 🚀
+------------------------+---------+-----------------+
| Used plugins |
+------------------------+---------+-----------------+
| Plugin | Version | Action |
+------------------------+---------+-----------------+
| fastlane-plugin-flutt | 1.1.15 | flutter_version |
| er_version | | |
+------------------------+---------+-----------------+
17:58:30: --- Step: validate_play_store_json_key ---
17:58:30: ------------------------------------------
+----------+--------------------------------------+
| Summary for validate_play_store_json_key |
+----------+--------------------------------------+
| json_key | /Users/ken/documents/projects/lessi |
| | mp/android/service_account_key.json |
| timeout | 300 |
+----------+--------------------------------------+
17:58:30: Successfully established connection to Google Play Store.
I find that when gpg is used to decrypt the .gpg file for the service_account_key.json to be set as an environment variable for json_key in the Actions filesystem., it does not unless I uncomment service_account_key.json from .gitignore
from fastlane-action.
Please use new version v3.0.0 of this action in combination with bundler-cache: true
. Let me know in case there are any further issues.
from fastlane-action.
Related Issues (20)
- Bundler 2.4.3 is running, but your lockfile was generated with 2.2.20 HOT 1
- build fail after upgrade to v3 HOT 4
- command not found 'fastlane' HOT 3
- how to cache pods ? HOT 1
- fastalne instead of fastlane HOT 1
- [ios build] mac os based github action HOT 1
- unknown ISA `XCLocalSwiftPackageReference Error when Xcode 15
- Error: Unable to load contents of file list
- Node 16 is deprecated HOT 2
- bundler: failed to load command: fastlane HOT 1
- Gemfile not being used despite being available in project's root HOT 2
- How can i pass release notes in build deployment? HOT 1
- Multiple vulnerabilities HOT 1
- 500 Server Error HOT 4
- Bundler deployment mode HOT 1
- Build error with Please update using `bundle update fastlane` HOT 7
- passing github token with fastlane HOT 1
- Output values HOT 1
- Node 12 is deprecated HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane-action.