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.
Asked
Modified 4 years, 4 months ago
Viewed 4k times
Part of Google Cloud, Microsoft Azure and CI/CD Collectives
1 Answer
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 }}' 2 Comments
Tushar Nikam
Hey @alexander still I’m getting errror /Users/runner/work/_temp/8fd067be-b678-455c-b30b-e1f33632cc0e.sh: line 1: FIREBASE_TOKEN: command not found Error: Failed to authenticate, have you run firebase login?
iBobb
have you tried calling the login command first:
npx firebase login:ci --token $(FirebaseToken)