-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreplace-firebase-config.yml
More file actions
42 lines (36 loc) · 1.57 KB
/
replace-firebase-config.yml
File metadata and controls
42 lines (36 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
parameters:
- name: pathToSrc
type: string
- name: firebaseJsonFile
type: string
- name: firebaseOptionsDartFile
type: string
- name: googleServicesJsonFile
type: string
steps:
- task: DownloadSecureFile@1
name: firebaseJson
displayName: "Download firebaseJson from Secure Files"
inputs:
secureFile: ${{ parameters.firebaseJsonFile }}
- task: DownloadSecureFile@1
name: firebaseOptionsDart
displayName: "Download firebaseOptionsDart from Secure Files"
inputs:
secureFile: ${{ parameters.firebaseOptionsDartFile }}
- task: DownloadSecureFile@1
name: googleServicesJson
displayName: "Download googleServicesJson from Secure Files"
inputs:
secureFile: ${{ parameters.googleServicesJsonFile }}
- task: PowerShell@2
displayName: Copy Firebase Configuration Files
inputs:
targetType: 'inline'
script: |
Copy-Item -Path '$(firebaseJson.secureFilePath)' -Destination '${{ parameters.pathToSrc }}\app\firebase.json'
Write-Host 'Firebase.json copied to ${{ parameters.pathToSrc }}/app/firebase.json'
Copy-Item -Path '$(firebaseOptionsDart.secureFilePath)' -Destination '${{ parameters.pathToSrc }}\app\lib\firebase_options.dart'
Write-Host 'FirebaseOptions.Dart copied to ${{ parameters.pathToSrc }}/app/lib/firebase_options.dart'
Copy-Item -Path '$(googleServicesJson.secureFilePath)' -Destination '${{ parameters.pathToSrc }}\app\android\app\google-services.json'
Write-Host 'GoogleServices.json copied to ${{ parameters.pathToSrc }}\app\android\app\google-services.json'