name: Deploy to GitHub Pages on: push: branches: - master jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: submodules: true fetch-depth: 0 - uses: subosito/flutter-action@v1 - name: Init scripts run: dart pub get working-directory: web/_tool - name: Build run: dart _tool/build_ci.dart working-directory: web - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: web/samples_index/public