forked from livekit/client-sdk-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 755 Bytes
/
Copy pathdeploy-web.yaml
File metadata and controls
28 lines (26 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: deploy web on github-page
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
name: Build and deploy web example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter pub get
- name: Build example web app
run: |
dart compile js ./web/e2ee.worker.dart -o ./example/web/e2ee.worker.dart.js
cd example
flutter build web --release --base-href /client-sdk-flutter/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/build/web