Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create deploy-web.yaml #359

Merged
merged 4 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/deploy-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: deploy web on github-page
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter config --enable-web
- run: flutter clean
- run: flutter pub get
- run: |
cd example
flutter build web --release --web-renderer html --base-href /client-sdk-flutter/
cd build/web
git init
git config --global user.email [email protected]
git config --global user.name cloudwebrtc
git status
git remote add origin https://${{secrets.commit_secret}}@github.com/livekit/client-sdk-flutter.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f
2 changes: 1 addition & 1 deletion example/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-->
<base href="/">
<base href="$FLUTTER_BASE_HREF">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
Expand Down
Loading