File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,11 @@ jobs:
3333 BASE_PATH : " src/environments/"
3434 run : |
3535 import os
36- import json
37- data = {}
3836 base_path = os.environ.get('BASE_PATH', 'src/environments/')
39- with open(base_path + "keys.example.json", "r+") as jsonFileRead:
40- data = json.load(jsonFileRead)
41- data["scopes"] = str(os.environ['SCOPES']).split(",")
42- data["client_id"] = os.environ['CLIENT_ID']
43- data["authority"] = os.environ['AUTHORITY']
44- with open(base_path + ".keys.json", "w+") as jsonFileWrite:
45- json.dump(data, jsonFileWrite)
37+ with open(base_path + "keys.ts", "w") as fileWithKeys:
38+ fileWithKeys.write('export const AUTHORITY = ') + str(os.environ['SCOPES']).split(",") + ';';
39+ fileWithKeys.write('\nexport const CLIENT_ID = ' + os.environ['CLIENT_ID']) + ';';
40+ fileWithKeys.write('\nexport const SCOPES = ' + os.environ['AUTHORITY']) + ';';
4641
4742 - name : ' run: npm install and build'
4843 run : |
You can’t perform that action at this time.
0 commit comments