Skip to content

Instantly share code, notes, and snippets.

@James-Aidoo
Last active September 1, 2021 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save James-Aidoo/0f7eb562ec69da6e1fe3a01152db7acd to your computer and use it in GitHub Desktop.
Save James-Aidoo/0f7eb562ec69da6e1fe3a01152db7acd to your computer and use it in GitHub Desktop.
App Center Distribute template to be used for distributing multiple generated APKs with Azure Pipelines.
# Variable 'AppCenter.ConnectionName' was defined in the Variables tab
# Variable 'AppCenter.AppSlug' was defined in the Variables tab
# Variable 'AppCenter.DestinationGroupId' was defined in the Variables tab
parameters:
- name: listOfApks # name of the parameter; required
type: object # data type of the parameter; required
default: apk
steps:
- ${{ each apk in parameters.listOfApks }}:
- task: AppCenterDistribute@3
displayName: Deploy ${{ apk }} to Visual Studio App Center
inputs:
serverEndpoint: $(AppCenter.ConnectionName) #App Center Connection name as created on Azure DevOps for the project. Read more: Read More: https://docs.microsoft.com/en-us/appcenter/distribution/vsts-deploy#setting-up-distribution-with-app-center
appSlug: $(AppCenter.AppSlug) #App Center app slug. Read More: https://docs.microsoft.com/en-us/appcenter/distribution/vsts-deploy#setting-up-distribution-with-app-center
app: ${{ apk }}
symbolsType: Android
packParentFolder: false
releaseNotesInput: Test Test
destinationGroupIds: $(AppCenter.DestinationGroupId)
isSilent: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment