Skip to content

feat: create flutter app for Web & macOS #3

feat: create flutter app for Web & macOS

feat: create flutter app for Web & macOS #3

Workflow file for this run

name: 'Deploy Web App to Github Pages'
concurrency:
group: $-$
cancel-in-progress: true
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
# - run: flutter pub run build_runner build --delete-conflicting-outputs
- run: flutter config --enable-web
- run: flutter build web --release --target lib/main_production.dart
- run: git config user.name github-actions
- run: git config user.email [email protected]
- run: git --work-tree build/web add --all
- run: git --work-tree .well-known add --all
- run: git add _config.yml
- run: git commit -m "Automatic deployment by github-actions"
- run: git push origin gh-pages --force