mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-26 03:59:39 +00:00
Add Flutter Web build and workflow
This commit is contained in:
45
.github/workflows/web-production.yml
vendored
Normal file
45
.github/workflows/web-production.yml
vendored
Normal file
@ -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
|
Reference in New Issue
Block a user