diff --git a/.vsts-ci.yml b/.vsts-ci.yml index e51e4a6d..2a89e390 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -48,7 +48,7 @@ jobs: ArtifactType: Container - job: macos - + condition: ne(variables['iOSSigning.Certificate'], '') pool: vmImage: 'macOS-10.13' @@ -56,6 +56,18 @@ jobs: - checkout: self clean: true + - task: InstallAppleCertificate@2 + displayName: 'Install an Apple certificate' + inputs: + certSecureFile: '$(iOSSigning.Certificate)' + certPwd: '$(iOSSigning.CertificatePwd)' + signingIdentity: '$(iOSSigning.CertificateIdentity)' + + - task: InstallAppleProvisioningProfile@1 + displayName: 'Install an Apple provisioning profile' + inputs: + provProfileSecureFile: '$(iOSSigning.ProvisioningProfile)' + - task: MSBuild@1 inputs: solution: '$(build.sourcesdirectory)/Samples/XamlUIBasics/cs/AppUIBasics.iOS/AppUIBasics.iOS.csproj'