Skip to content

try

try #10

Workflow file for this run

name: Flutter Web
on:
push:
branches:
- demo_v2
jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter config --enable-web
- run: cd example && flutter pub get && flutter build web --release --base-href "/flutter_janus_client/" && dart doc .
- run: |
cp -r example/doc example/build/web
cd example/build/web
git init
# type configurations: your user.email and user.name followed lines
# git config --global user.email your_email
# git config --global user.name your_name
git config --global user.email [email protected]
git config --global user.name shivanshtalwar0
git status
# change this remote url for examle your remote url is https://github.com/onatcipli/flutter_web.git then the following:
git remote add origin https://${{secrets.commit_secret}}@github.com/flutterjanus/flutter_janus_client.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f