6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 4bee6c48

AuthorNikolaj King<nikolaj.king@gmail.com>
Date2024-07-08 13:09:04 +0200
Update azure-pipelines.yml for Azure Pipelines added stages to support multiple pipelines for android and ios as well

Changed files

azure-pipelines.yml | 51 ++++++++++++++++++++++++++++++---------------------
 1 file changed, 30 insertions(+), 21 deletions(-)

Diff

diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 872870ec..ee1f1959 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -2,24 +2,33 @@
trigger:
- master
-pool:
- vmImage: ubuntu-latest
-
-steps:
-- task: FlutterInstall@0
- inputs:
- mode: 'auto'
- channel: 'stable'
- version: 'latest'
-# Start with a minimal pipeline that you can customize to build and deploy your code.
-# Add steps that build, run tests, deploy, and more:
-# https://aka.ms/yaml
-- task: FlutterBuild@0
- inputs:
- target: 'web'
- projectDirectory: '.'
-- task: PublishBuildArtifacts@1
- inputs:
- PathtoPublish: '$(Build.ArtifactStagingDirectory)'
- ArtifactName: 'drop'
- publishLocation: 'Container'
\ No newline at end of file
+
+
+stages:
+- stage: webStage
+ pool:
+ vmImage: ubuntu-latest
+ jobs:
+ - job: WebJob
+ steps:
+ - task: FlutterInstall@0
+ inputs:
+ mode: 'auto'
+ channel: 'stable'
+ version: 'latest'
+
+ - task: FlutterBuild@0
+ inputs:
+ target: 'web'
+ projectDirectory: '.'
+ - task: CopyFiles@2
+ inputs:
+ SourceFolder: 'build/web'
+ Contents: '**'
+ TargetFolder: '$(build.artifactStagingDirectory)'
+ - task: PublishBuildArtifacts@1
+ displayName: "Publish Web"
+ inputs:
+ PathtoPublish: '$(Build.ArtifactStagingDirectory)'
+ ArtifactName: 'drop'
+ publishLocation: 'Container'
\ No newline at end of file