Setup CI on Gitlab for Flutter Web

1.1k Views Asked by At

I'm trying to setup CI on Gitlab for Flutter Web. My `. But it does not build the web app.

cirrus.yml` file:

image: cirrusci/flutter:latest

variables:
before_script:
  - flutter channel beta
  - flutter upgrade
  - flutter config --enable-web
  - flutter pub get
pages:
  stage: deploy
  script:
    - flutter build web
    - cp -r build/web public
  artifacts:
    paths:
      - public
  only:
    - live

Pipeline doesn't start automatically. When I ran it manually, I'm getting following error:

No stages / jobs for this pipeline.
Specify variable values to be used in this run. The values specified in CI/CD settings will be used by default.
0

There are 0 best solutions below