Skip to content

Update build_web.yml #13

Update build_web.yml

Update build_web.yml #13

Workflow file for this run

name: Build Flutter Web
on:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.0'
channel: 'stable'
- name: Get dependencies
run: flutter pub get
- name: Enable Flutter web
run: flutter config --enable-web
- name: Build Flutter web app
run: flutter build web --wasm
- name: Update base href in index.html
run: sed -i 's|<base href="/">|<base href="/web/">|g' build/web/index.html
- name: Upload build artifact
uses: actions/upload-artifact@v4

Check failure on line 34 in .github/workflows/build_web.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_web.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
with:
name: web-build
path: build/web
retention-days: 1 # Adjust as needed