Skip to content

Feat: 支持到flutter 3.13.7 #85

Feat: 支持到flutter 3.13.7

Feat: 支持到flutter 3.13.7 #85

name: Flutter Web
on:
push:
branches:
- master
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 pub get
- run: flutter build web --web-renderer html --release
- run: |
cd 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 1164258202@qq.com
git config --global user.name oheroj
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/swiftdo/web-demo.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f