-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
57 lines (46 loc) · 1.36 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
# Xamarin.Android
# Add steps that test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- task: android-manifest-version@1
inputs:
sourcePath: './AndroidManifest.xml'
versionCodeOption: 'timestamp'
printFile: true
- task: UseDotNet@2
displayName: 'Install .NET sdk'
inputs:
packageType: sdk
- task: CmdLine@2
displayName: 'Install Maui Workload'
inputs:
script: 'dotnet workload install maui-android'
- task: XamarinAndroid@1
inputs:
projectFile: '**/hajk.csproj'
outputDirectory: '$(outputDirectory)'
configuration: '$(buildConfiguration)'
msbuildVersionOption: 'latest'
jdkOption: 'JDKVersion'
jdkVersionOption: '1.11'
- task: AndroidSigning@3
inputs:
apkFiles: '$(outputDirectory)\*.apk'
apksignerKeystoreFile: 'hajk.keystore'
apksignerKeystorePassword: '$(Keystore_Password)'
apksignerKeystoreAlias: 'Kala'
apksignerKeyPassword: '$(Keystore_Password)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(outputDirectory)'