From ac462bb796e859a36301a96b394038e856065e48 Mon Sep 17 00:00:00 2001 From: Rody Davis <31253215+rodydavis@users.noreply.github.com> Date: Wed, 5 Feb 2020 10:22:23 -0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9394afd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: github pages + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Setup Flutter + uses: subosito/flutter-action@v1 + with: + channel: 'dev' + + - name: Install + run: | + flutter config --enable-web + flutter pub get + + - name: Build + run: cd example && flutter build web + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_dir: ./example/build/web