-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
60 lines (50 loc) · 1.51 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
51
52
53
54
55
56
57
58
59
60
name: $(majorMinorVersion).$(Build.BuildId)
trigger:
- master
pool:
vmImage: 'macos-latest'
variables:
majorMinorVersion: 0.2
buildConfiguration: 'Release'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- task: android-manifest-version@1
inputs:
sourcePath: 'src/Covid19/Covid19.Android/Properties/AndroidManifest.xml'
versionCodeOption: 'buildid'
versionCode: '$(Build.BuildId)'
versionName: '$(majorMinorVersion).$(Build.BuildId)'
printFile: true
- task: XamarinAndroid@1
inputs:
projectFile: '**/*droid*.csproj'
outputDirectory: '$(outputDirectory)'
configuration: '$(buildConfiguration)'
- task: AndroidSigning@3
inputs:
apkFiles: '**/*.apk'
apksign: true
apksignerKeystoreFile: 'anas.keystore'
apksignerKeystorePassword: '$(KEYPWD)'
apksignerKeystoreAlias: 'anas'
apksignerKeyPassword: '$(KEYPWD)'
zipalign: true
- task: CopyFiles@2
inputs:
contents: '**/*.apk'
targetFolder: '$(build.artifactStagingDirectory)'
# Xamarin.Android
- task: AppCenterDistribute@3
inputs:
serverEndpoint: 'Azure Pipelines (covid app)'
appSlug: 'elhajjajianas/covid19'
appFile: 'src/Covid19/Covid19.Android/obj/Release/android/bin/anas.covid19.apk'
symbolsOption: 'Android'
releaseNotesOption: 'file'
releaseNotesFile: 'notes.txt'
destinationType: 'groups'
distributionGroupId: '6683c620-115a-4659-b8f2-a804630560e0'