-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazdo_windows.yml
63 lines (51 loc) · 1.52 KB
/
azdo_windows.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
trigger:
- main
variables:
BuildConfiguration: Release
DotNetVersion: 8.0.204
stages:
- stage: BuildApps
jobs:
- job: BuildMAUIApps
displayName: Build MAUI App
pool:
vmImage: 'windows-2022'
demands:
- MSBuild
steps:
- task: UseDotNet@2
displayName: .NET Version
inputs:
packageType: 'sdk'
version: '$(DotNetVersion)'
- task: PowerShell@2
displayName: Install .NET MAUI
inputs:
targetType: 'inline'
script: |
& dotnet nuget locals all --clear
& dotnet workload install maui
- task: Bash@3
displayName: Restore Packages
inputs:
targetType: 'inline'
script: |
dotnet restore LocalizationDemo.sln
# https://docs.microsoft.com/en-us/dotnet/maui/android/deployment/overview
- task: Bash@3
displayName: Build Android App
inputs:
targetType: 'inline'
script: |
dotnet publish LocalizationDemo.sln -f net8.0-android -c Release
# Signing Android App : https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/mobile/app-signing?view=azure-devops&tabs=apple-install-during-build#sign-your-android-app
- task: CopyFiles@2
inputs:
Contents: |
**/*.apk
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop_artifacts'
publishLocation: 'Container'