From fe1e39d2e6046d11c69e622f5c519d5a55f9c830 Mon Sep 17 00:00:00 2001 From: Het Patel Date: Mon, 22 Jan 2024 19:19:42 -0600 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..55e0cda --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Flutter + uses: subosito/flutter-action@v2.12.0 + with: + channel: 'stable' + + - name: Setup Flutter + run: | + flutter config --enable-web + + - name: Build web + run: | + flutter pub get + flutter build web + + - name: Deploy to GH Pages + uses: peaceiris/actions-gh-pages@v3.9.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build/web