简体   繁体   English

Firebase 通过 github 操作使用快速通道分发应用程序?

[英]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操作上分发应用程序。

FastLane file快车道文件

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

Github Actions Github 动作

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.

相关问题 使用 fastlane 和 Firebase App Distribution 分发 Flutter 应用程序 - Distributing a Flutter app using fastlane and Firebase App Distribution IPA 未使用 fastlane 上传到 App Distribution - IPA not uploaded to App Distribution using fastlane Firebase 通过 Fastlane 的应用程序分发“服务器响应状态 404” - Firebase app distribution via Fastlane "the server responded with status 404" 通过 firebase_app_distribution 插件为 fastlane 生成 firebase 刷新令牌的问题 - Issue generating firebase refresh token via firebase_app_distribution plugin for fastlane Firebase App Distribution(fastlane 插件):无法从刷新令牌生成凭据 - Firebase App Distribution (fastlane plugin): could not generate credentials from the refresh token Fastlane 分发失败,出现错误“App Distribution 找不到您的应用” - Fastlane distribution failed with error "App Distribution could not find your app" 在 GitHub 操作中验证 Firebase 连接 - Authenticating Firebase connection in GitHub Action github build and deploy to firebase 动作错误 - github build and deploy to firebase action error 在 Firebase 应用程序分发中链接到 Google Play 的问题 - Issue Linking to Google Play in Firebase App Distribution Firebase 应用分发失败:apk 文件无效 - Firebase app distribution fails: invalid apk file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM