Skip to content

Version 2.0.2 (#485) #546

Version 2.0.2 (#485)

Version 2.0.2 (#485) #546

Workflow file for this run

name: GH-Pages
on:
push:
branches:
- stable
pull_request:
branches:
- stable
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install Dependencies
run: flutter pub get
working-directory: ./example
- name: Build Web
run: flutter build web
working-directory: ./example
- name: Deploy
run: |
cd example/build/web
git init
git config user.name "GroovinChip"
git config user.email "[email protected]"
git remote add secure-origin https://username:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git checkout -b gh-pages
git add .
git commit -m "update"
git push --force secure-origin gh-pages