From bb3aa0eac6ac59cf9cb5f0408471dc31e1db101f Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Mon, 14 Jul 2025 00:10:30 -0600 Subject: [PATCH] Add Flutter Web build and workflow --- .github/workflows/web-production.yml | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/web-production.yml diff --git a/.github/workflows/web-production.yml b/.github/workflows/web-production.yml new file mode 100644 index 00000000..8e32d0cf --- /dev/null +++ b/.github/workflows/web-production.yml @@ -0,0 +1,45 @@ +name: 🚀 Flutter Web Production Deployment + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + + env: + AWS_DEFAULT_REGION: me-central-1 + + steps: + - name: ⬇️ Checkout Code + uses: actions/checkout@v4 + + - name: 🐢 Set up Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: 🐳 Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: 🔐 Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ env.AWS_DEFAULT_REGION }} + + - name: 🎯 Set up Flutter SDK + uses: subosito/flutter-action@v2 + with: + flutter-version: "3.22.1" + + - name: 📦 Install Flutter Dependencies + run: flutter pub get + + - name: 🛠️ Run Flutter Build & CDK Deploy + run: | + chmod +x ./build.sh + ./build.sh