aloisdeniel / vsts-flutter-tasks

Flutter build tasks for Azure DevOps Pipelines/TFS.
https://marketplace.visualstudio.com/items?itemName=aloisdeniel.flutter
107 stars 83 forks source link

VSTS Flutter Web #63

Closed liloSc closed 4 years ago

liloSc commented 4 years ago

How can i run a Build Pipeline with just Web as the target Platform?

For now i have this in my yaml File

trigger:
- master

pool:
  vmImage: 'macos-latest'

steps:
- task: FlutterInstall@0
  inputs:
    channel: 'stable'
    version: 'latest'

- task: FlutterBuild@0
  inputs:
    target: 'web'
    projectDirectory: '.'

But then i get the following Error Message: "build web" is not currently supported.

I already tried to change the Build Task to this

- task: CmdLine@2
  inputs:
    script: |
      $(FlutterToolPath)/flutter config --enable-web 
      $(FlutterToolPath)/flutter create .
      $(FlutterToolPath)/flutter build web

But i get the same Error..

hey24sheep commented 4 years ago

@liloSc have a look at this. You might be using stable version or you do not have web configured for your project.