|
88 | 88 | echo "keyPassword=$KEY_PASSWORD" >> android/key.properties
|
89 | 89 | echo "keyAlias=$KEY_ALIAS" >> android/key.properties
|
90 | 90 | 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 |
91 | 97 |
|
92 | 98 | # Configure Gradle for faster builds
|
93 | 99 | - name: Configure Gradle
|
@@ -171,6 +177,12 @@ jobs:
|
171 | 177 | run: |
|
172 | 178 | mkdir $env:USERPROFILE\certs
|
173 | 179 | [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 |
174 | 186 |
|
175 | 187 | # Setup Flutter with caching
|
176 | 188 | - name: Setup Flutter
|
@@ -247,6 +259,12 @@ jobs:
|
247 | 259 | key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.yaml') }}
|
248 | 260 | restore-keys: |
|
249 | 261 | ${{ 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 |
250 | 268 |
|
251 | 269 | # Step 5: Fetch Flutter dependencies
|
252 | 270 | - name: Fetch Flutter dependencies
|
@@ -295,6 +313,14 @@ jobs:
|
295 | 313 | with:
|
296 | 314 | flutter-version: 3.27.1
|
297 | 315 | 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 | + |
298 | 324 |
|
299 | 325 | # Step 3 Get Dependencies
|
300 | 326 | - name: Get Dependencies
|
|
0 commit comments