Skip to content

Update README.md

Update README.md #19

name: Deploy Flutter Web to GitHub Pages
on:
push:
branches:
- main # Change this if your default branch is different
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.27.2" # Update to your Flutter version
- name: Enable web support
run: flutter config --enable-web
- name: Install dependencies
run: flutter pub get
- name: Build Flutter web
run: flutter build web --release --base-href="/cross_platform_carecomm_assessment/"
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # Deployment branch
folder: build/web # Output folder
clean: true # Remove old files before deployment