Added staging base url

This commit is contained in:
Abdullah Alassaf
2024-09-04 00:50:16 +03:00
parent d0e7d12279
commit c7b1ed5b8e
2 changed files with 3 additions and 10 deletions

View File

@ -26,20 +26,12 @@ jobs:
with:
flutter-version: '3.22.2' # Specify the Flutter version you want to use
- name: Load Environment Variables
run: |
echo "Loading environment variables from .env.production"
cat .env.production | grep -v '^#' >> $GITHUB_ENV
- name: Install dependencies
run: flutter pub get
- name: Build Flutter Web App
run: |
flutter build web --release \
--dart-define=ENV_NAME=${{ env.ENV_NAME }} \
--dart-define=BASE_URL=${{ env.BASE_URL }} \
--dart-define=FLAVOR=production
flutter build web
- name: Build And Deploy
id: builddeploy