-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-iOs-release.yml
78 lines (64 loc) · 2.14 KB
/
azure-pipelines-iOs-release.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Xamarin.iOS
# Build a Xamarin.iOS project.
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin
trigger:
- release
pool:
vmImage: 'macos-latest'
steps:
# To manually select a Xamarin SDK version on the Microsoft-hosted macOS agent,
# configure this task with the *Mono* version that is associated with the
# Xamarin SDK version that you need, and set the "enabled" property to true.
# See https://go.microsoft.com/fwlink/?linkid=871629
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_12_0
displayName: 'Select the Xamarin SDK version'
enabled: false
- task: DownloadSecureFile@1
name: IdentityServiceSecret
inputs:
secureFile: 'IdentityServiceSecret'
- task: Bash@3
inputs:
targetType: 'inline'
script: |
# Write your commands here
echo 'Renaming secret'
mv $(IdentityServiceSecret.secureFilePath) NutzMich.Shared/Services/IdentityServiceSecret.cs
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*iOs.sln'
- task: InstallAppleCertificate@2
inputs:
certSecureFile: 'iOsDevCertificate.p12'
certPwd: '$(iOsCertificatePassword)'
keychain: 'temp'
- task: InstallAppleProvisioningProfile@1
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: 'NutzMich.mobileprovision'
- task: ios-bundle-version@1
inputs:
sourcePath: 'NutzMich.iOS/Info.plist'
versionCodeOption: 'buildid'
versionCode: '$(Build.BuildId)'
printFile: true
- task: XamariniOS@2
inputs:
solutionFile: '**/*iOs.sln'
configuration: 'AppStore'
buildForSimulator: false
packageApp: true
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: '**/*.ipa'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'ios_storeupload_drop'
publishLocation: 'Container'