fix workflow #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |