feat: create flutter app for Web & macOS #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |