Skip to content

Commit 5fceb74

Browse files
committed
chore: added creation of .env not tested
1 parent 0511422 commit 5fceb74

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/dart.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ jobs:
8888
echo "keyPassword=$KEY_PASSWORD" >> android/key.properties
8989
echo "keyAlias=$KEY_ALIAS" >> android/key.properties
9090
echo "storeFile=dartotsu.jks" >> android/key.properties
91+
# Create .env:
92+
- name: Setup env File
93+
env:
94+
SIMKL_SECRET: ${{ secrets.SIMKL_SECRET }}
95+
run: |
96+
echo "SIMKL_SECRET=$SIMKL_SECRET" > .env
9197
9298
# Configure Gradle for faster builds
9399
- name: Configure Gradle
@@ -171,6 +177,12 @@ jobs:
171177
run: |
172178
mkdir $env:USERPROFILE\certs
173179
[System.IO.File]::WriteAllBytes("$env:USERPROFILE\certs\Dartotsu.pfx", [Convert]::FromBase64String("${{secrets.PFX_FILE}}"))
180+
# Create .env:
181+
- name: Setup env File
182+
env:
183+
SIMKL_SECRET: ${{ secrets.SIMKL_SECRET }}
184+
run: |
185+
echo "SIMKL_SECRET=$env:SIMKL_SECRET" > .env
174186
175187
# Setup Flutter with caching
176188
- name: Setup Flutter
@@ -247,6 +259,12 @@ jobs:
247259
key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.yaml') }}
248260
restore-keys: |
249261
${{ runner.os }}-flutter-
262+
# Create .env:
263+
- name: Setup env File
264+
env:
265+
SIMKL_SECRET: ${{ secrets.SIMKL_SECRET }}
266+
run: |
267+
echo "SIMKL_SECRET=$SIMKL_SECRET" > .env
250268
251269
# Step 5: Fetch Flutter dependencies
252270
- name: Fetch Flutter dependencies
@@ -295,6 +313,14 @@ jobs:
295313
with:
296314
flutter-version: 3.27.1
297315
cache: true
316+
317+
- name: Setup .env File for macOS
318+
env:
319+
SIMKL_SECRET: ${{ secrets.SIMKL_SECRET }}
320+
run: |
321+
echo "SIMKL_SECRET=$SIMKL_SECRET" > .env
322+
shell: bash
323+
298324

299325
# Step 3 Get Dependencies
300326
- name: Get Dependencies

0 commit comments

Comments
 (0)