From 93de08176321e2e008c7894476c4c228cd64f11c Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Wed, 4 Dec 2019 15:58:41 +0900 Subject: [PATCH] docs: Enhance Flutter example --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5b36265..99903f5 100644 --- a/README.md +++ b/README.md @@ -691,7 +691,12 @@ jobs: ### ⭐️ 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 name: github pages @@ -705,21 +710,22 @@ jobs: build-deploy: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@master + - uses: actions/checkout@v1 - - name: setup flutter + - name: Setup Flutter uses: subosito/flutter-action@v1 with: channel: 'dev' - - name: install + - name: Install run: | flutter config --enable-web flutter pub get - - name: build + + - name: Build run: flutter build web - - name: deploy + - name: Deploy uses: peaceiris/actions-gh-pages@v2.5.0 env: ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}