Skip to content

Merge pull request #3 from zonble/dependabot/pub/flutter_lints-2.0.3 #47

Merge pull request #3 from zonble/dependabot/pub/flutter_lints-2.0.3

Merge pull request #3 from zonble/dependabot/pub/flutter_lints-2.0.3 #47

name: Flutter Web
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
flutter-version: "3.16.x" # you can use 1.12
channel: "stable" # Currently you have to use beta channel for Flutter web.
- name: Upgrades Flutter
run: flutter upgrade
working-directory: ./example
- name: Enable Web
run: flutter config --enable-web
working-directory: ./example
- name: Install Dependencies
run: flutter packages get
working-directory: ./example
- name: Build Web
run: flutter build web
working-directory: ./example
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: example/build/web