Skip to content

Updates CI settings. #57

Updates CI settings.

Updates CI settings. #57

name: Flutter Web
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: "17"
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.x"
channel: "stable"
- 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 --wasm
working-directory: ./example
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: example/build/web