From 3bb272f620926c25db39995add72187f41c2d9ef Mon Sep 17 00:00:00 2001 From: toddlerer <74579078+toddlerer@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:36:04 +0900 Subject: [PATCH] Add GitHub Action for Flutter Web deployment --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..6d77084 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Build and Deploy Flutter Web + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: "stable" + + - name: Flutter Pub Get + run: flutter pub get + + - name: Build Flutter Web + run: flutter build web + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 + with: + branch: "gh-pages" + folder: "build/web"