Skip to content

ihjbdhbd

ihjbdhbd #3

name: Flutter Build Web
on:
push:
branches: [ production ]
pull_request:
paths:
- '**/*.dart'
- 'web/**'
- 'pubspec.yaml'
workflow_dispatch:
jobs:
build-web:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.32.0
- name: Enable web
run: flutter config --enable-web
- name: Install dependencies
run: flutter pub get
- name: Generate code
run: dart run build_runner build --delete-conflicting-outputs
- name: Build web (Release)
run: flutter build web --release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: web-build
path: build/web