Azure DevOps 将 iOS 应用程序部署到 Firebase 应用程序分发

Ale*_*der 2 azure firebase azure-devops azure-pipelines

我有一个构建 iOS 应用程序的 Azure 管道。我正在寻找一种将 .ipa 文件部署到 Firebase 应用程序分发的方法。我找不到任何提供执行此操作的步骤的文档或参考。我看到几篇文章解释了我们可以使用 PowerShell 发布到 Firebase 应用程序分发。有没有我可以参考的参考 Azure Pipeline yaml?我对 Azure DevOps 管道还很陌生,无法完成这一步。

Ale*_*der 5

我成功安装了 Firebase 并将应用程序 IPA 分发到 Firebase 应用程序分发。万一,如果有人正在寻找答案:

# Install Firebase tools
- task: CmdLine@2
  displayName: 'Install Firebase Tools'
  inputs:
    script: 'curl -sL firebase.tools | bash'
    workingDirectory: '$(Agent.ToolsDirectory)'

- task: CmdLine@2
  displayName: 'Deploy IPA to Firebase'
  inputs:
    script: |
      firebase appdistribution:distribute *.ipa \
      --app "$(appId)" \
      --token "$(FIREBASE_TOKEN)" \
      --release-notes "$BUILD_SOURCEVERSIONMESSAGE"
    workingDirectory: '$(agent.buildDirectory)/output/$(sdk)/${{ parameters.configuration }}'
Run Code Online (Sandbox Code Playgroud)