docs: Enhance Flutter example

This commit is contained in:
peaceiris 2019-12-04 15:58:41 +09:00
parent f035f9f5e7
commit 93de081763
1 changed files with 12 additions and 6 deletions

View File

@ -691,7 +691,12 @@ jobs:
### ⭐️ Flutter Web ### ⭐️ Flutter Web
An exapmle for [Flutter](https://github.com/flutter/flutter) project with [flutter build web](https://flutter.dev/docs/get-started/web) An exapmle workflow for [Flutter web project].
Setup [Flutter] with [subosito/flutter-action].
[Flutter]: https://github.com/flutter/flutter
[Flutter web project]: https://flutter.dev/docs/get-started/web
[subosito/flutter-action]: https://github.com/subosito/flutter-action
```yaml ```yaml
name: github pages name: github pages
@ -705,21 +710,22 @@ jobs:
build-deploy: build-deploy:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v1
- name: setup flutter - name: Setup Flutter
uses: subosito/flutter-action@v1 uses: subosito/flutter-action@v1
with: with:
channel: 'dev' channel: 'dev'
- name: install - name: Install
run: | run: |
flutter config --enable-web flutter config --enable-web
flutter pub get flutter pub get
- name: build
- name: Build
run: flutter build web run: flutter build web
- name: deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0 uses: peaceiris/actions-gh-pages@v2.5.0
env: env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}