[英]Firebase app distribution using fastlane through github action?
I am new to Fastlane
and distributing the app using the Firebase
app distribution on a Github
action.我是
Fastlane
的新手,使用Firebase
应用程序分发在Github
操作上分发应用程序。
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Build and submit to Firebase App distribution Internal users"
lane :dev do
firebase_app_distribution(
app: "some -app -ID",
groups: "internal-testers",
release_notes_file: "FirebaseAppDistributionConfig/dev_notes.txt",
)
end
end
name: Distribute
on:
push:
branches: [ master ]
jobs:
distribute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Install bundle
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Create Firebase Service Credentials file
run: |
echo "$FIREBASE_CREDENTIALS" > firebase_credentials.json.b64
base64 -d -i firebase_credentials.json.b64 > firebase_credentials.json
env:
FIREBASE_CREDENTIALS: ${{ secrets.FIREBASE_CREDENTIALS }}
- name: Distribute app with 🔥 App Distribution 🚀
run: bundle exec fastlane dev
env:
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
Whenever I am committing to the master branch, I am getting " Couldn't find binary
".每当我提交到 master 分支时,我都会收到“
Couldn't find binary
”。 Here is an attached screenshot of GitHub action terminal这是GitHub动作终端的附加截图
I even added all secrets
to GitHub repository.我什至将所有
secrets
添加到 GitHub 存储库。 However, If I run bundle exec fastlane dev
.但是,如果我运行
bundle exec fastlane dev
。 It's working fine and I can see the new APK uploaded to the firebase app distribution platform.它工作正常,我可以看到新的 APK 已上传到 firebase 应用分发平台。
Any hint what am I doing wrong here?任何提示我在这里做错了什么? Is there a way that I can see the stack trace why fastlane is not able to find the apk?
有没有办法让我看到堆栈跟踪,为什么 fastlane 找不到 apk?
you can specify the apk or bundle file absolute path by using您可以使用指定 apk 或 bundle 文件的绝对路径
desc "Build and submit to Firebase App distribution Internal users"
lane :dev do |options|
firebase_app_distribution(
app: "some -app -ID",
groups: "internal-testers",
release_notes_file: "FirebaseAppDistributionConfig/dev_notes.txt",
android_artifact_path: "type it here directly or
pass it through terminal>>" options[:buildPath]
)
end
If you want to use pass it from the terminal:如果你想使用从终端传递它:
bundle exec fastlane dev buildPath:"must be the full path to the artifact!! something like this>../app/build/outputs/apk/dev/release/app-dev-release.apk"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.