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