Skip to content

feat(flutter_deck_ws_server): add flutter_deck_ws_server #63

feat(flutter_deck_ws_server): add flutter_deck_ws_server

feat(flutter_deck_ws_server): add flutter_deck_ws_server #63

name: Build and deploy the example to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: flutter pub get
working-directory: ./packages/flutter_deck/example
- name: Replace index.html
run: mv gh_pages.index.html index.html
working-directory: ./packages/flutter_deck/example/web
- name: Build web
run: flutter build web --release --web-renderer=canvaskit
working-directory: ./packages/flutter_deck/example
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/flutter_deck/example/build/web