Skip to content

fix workflow

fix workflow #4

Workflow file for this run

name: Gh-Pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cache Flutter dependencies
uses: actions/cache@v1
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }}
# Setup the flutter environment.
- uses: subosito/flutter-action@v1
with:
# channel: 'beta' # 'dev', 'alpha', default to: 'stable'
flutter-version: ${{ env.flutter_version }}
- name: Install dependencies
run: flutter pub get
- name: Build web directory
run: flutter build web --release
- uses: actions/checkout@v2 # Only works with v2
- uses: subosito/flutter-action@v1
- uses: bluefireteam/flutter-gh-pages@v7
with:
workingDir: build/web