From f035f9f5e7bf4a310747acb181ba3194895d9e1f Mon Sep 17 00:00:00 2001 From: Taiga Mikami Date: Wed, 4 Dec 2019 15:49:03 +0900 Subject: [PATCH] docs: add flutter web workflow example (#56) --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 2abc92a..5b36265 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ Do you want to skip the docker build step? OK, the script mode is available. - [⭐️ Vue and Nuxt](#%EF%B8%8F-vue-and-nuxt) - [⭐️ Static Site Generators with Python](#%EF%B8%8F-static-site-generators-with-python) - [⭐️ mdBook (Rust)](#%EF%B8%8F-mdbook-rust) + - [⭐️ Flutter Web](#%EF%B8%8F-flutter-web) - [License](#license) - [About the author](#about-the-author) @@ -688,7 +689,43 @@ jobs: PUBLISH_DIR: ./book ``` +### ⭐️ Flutter Web +An exapmle for [Flutter](https://github.com/flutter/flutter) project with [flutter build web](https://flutter.dev/docs/get-started/web) + +```yaml +name: github pages + +on: + push: + branches: + - master + +jobs: + build-deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@master + + - name: setup flutter + uses: subosito/flutter-action@v1 + with: + channel: 'dev' + + - name: install + run: | + flutter config --enable-web + flutter pub get + - name: build + run: flutter build web + + - name: deploy + uses: peaceiris/actions-gh-pages@v2.5.0 + env: + ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./build/web +``` ## License