Alexander
Alexander

Reputation: 480

Azure devops deploy iOS app to firebase app distribution

I have an Azure pipeline that builds iOS application. I am looking for a way to deploy the .ipa file to Firebase App distribution. I couldn't find any document or reference that provides the steps to do that. I saw few articles that explains we could publish to Firebase app distribution using PowerShell. Is there a reference azure pipeline yaml that I could refer? I am pretty new to Azure DevOps pipeline and can't get past this step.

Upvotes: 2

Views: 3447

Answers (1)

Alexander
Alexander

Reputation: 480

I managed to install Firebase and distribute the app IPA to Firebase app distribution. In case, if anyone is looking for an answer:

# 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 }}'

Upvotes: 6

Related Questions