fix: mv env

This commit is contained in:
mso7nueh
2025-08-29 15:16:40 +03:00
parent 73ff67aa13
commit 39fce4b0f9
5 changed files with 8 additions and 10 deletions

View File

@@ -21,20 +21,19 @@ jobs:
- name: Copy .env file
run: |
mkdir -p env
cp env_repo/.env env/.env
cp env_repo/.env .env
- name: Load environment variables from .env
run: |
set -a
source env/.env
source .env
set +a
# Export all variables to GITHUB_ENV
while IFS= read -r line; do
if [[ $line =~ ^[A-Za-z_][A-Za-z0-9_]*= ]]; then
echo "$line" >> $GITHUB_ENV
fi
done < env/.env
done < .env
- name: Unlock login keychain
run: |

View File

@@ -26,20 +26,19 @@ jobs:
- name: Copy .env file
run: |
mkdir -p env
cp env_repo/.env env/.env
cp env_repo/.env .env
- name: Load environment variables from .env
run: |
set -a
source env/.env
source .env
set +a
# Export all variables to GITHUB_ENV
while IFS= read -r line; do
if [[ $line =~ ^[A-Za-z_][A-Za-z0-9_]*= ]]; then
echo "$line" >> $GITHUB_ENV
fi
done < env/.env
done < .env
- name: Create key.properties file
run: |

0
env/.env vendored
View File

View File

@@ -29,7 +29,7 @@ Future<void> main() async {
WidgetsBinding widgetsBinding = SentryWidgetsFlutterBinding.ensureInitialized();
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
await dotenv.load(fileName: "env/.env");
await dotenv.load(fileName: ".env");
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
await FirebaseMessaging.instance.requestPermission();

View File

@@ -90,7 +90,7 @@ dev_dependencies:
flutter:
uses-material-design: true
assets:
- env/.env
- .env
- assets/
- assets/images/
- assets/audio/