Last active
February 4, 2024 18:10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- main | |
jobs: | |
- job: Job_Android | |
displayName: Build Android | |
pool: | |
vmimage: 'windows-latest' | |
steps: | |
- task: UseDotNet@2 | |
inputs: | |
packageType: 'sdk' | |
version: '7.x' | |
- task: Bash@3 | |
displayName: Instalando MAUI | |
inputs: | |
targetType: 'inline' | |
script: | | |
dotnet nuget locals all --clear | |
cd "Maui.AzurePipelines/" | |
dotnet workload restore | |
- task: JavaToolInstaller@0 | |
displayName: Instalando JDK | |
inputs: | |
versionSpec: '11' | |
jdkArchitectureOption: 'x64' | |
jdkSourceOption: 'PreInstalled' | |
- task: CmdLine@2 | |
displayName: 'Compilando Android App' | |
inputs: | |
script: | | |
cd "Maui.AzurePipelines/" | |
dotnet publish Maui.AzurePipelines.csproj -f net7.0-android -c Release | |
- task: CopyFiles@2 | |
displayName: Copiando para o diretorio de artifacts | |
inputs: | |
Contents: | | |
**/*.aab | |
**/*.apk | |
TargetFolder: '$(Build.ArtifactStagingDirectory)' | |
flattenFolders: true | |
- task: PublishBuildArtifacts@1 | |
displayName: Liberando nos artifacts | |
inputs: | |
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | |
ArtifactName: 'drop_android' | |
publishLocation: 'Container' | |
- job: Job_iOS | |
displayName: Build iOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment