Merge pull request #374 from DanXi-Dev/fix-370 #345
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 to GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Prepare Dependencies | |
run: | | |
flutter pub get | |
flutter pub global activate intl_utils | |
flutter pub global run intl_utils:generate | |
- name: Generate Models | |
run: dart run build_runner build --delete-conflicting-outputs | |
- name: Build | |
run: | | |
flutter build web --release --web-renderer html | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4.2.5 | |
with: | |
branch: gh-pages | |
folder: build/web |