forked from MicrosoftDocs/pipelines-xamarin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
50 lines (41 loc) · 1.48 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Xamarin.iOS
# Build a Xamarin.iOS app and Xamarin.UITest assembly.
# Add steps that install certificates, test, sign, and distribute the app, save build artifacts, and more:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/xamarin
pool:
vmImage: 'macOS-latest'
variables:
- group: 'variables'
steps:
# To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the SDK version you want to target
# https://go.microsoft.com/fwlink/?linkid=871629
- script: /bin/bash -c "sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_12_16"
displayName: 'Select Xamarin SDK version'
enabled: true
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*iOS.csproj'
- task: DownloadSecureFile@1
inputs:
secureFile: 'Applepp.mobileprovision'
- task: DownloadSecureFile@1
inputs:
secureFile: 'Applecert'
- task: InstallAppleCertificate@2
inputs:
certSecureFile: 'Applecert'
certPwd: '$(AppleCertificate-Password)'
keychain: 'temp'
- task: InstallAppleProvisioningProfile@1
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: 'Applepp.mobileprovision'
- task: XamariniOS@2
inputs:
solutionFile: '**/*iOS.csproj'
configuration: 'Release'
packageApp: true
runNugetRestore: true
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
signingProvisioningProfileID: '$(APPLE_PROV_PROFILE_UUID)'