mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Write secrets from CI environment
This commit is contained in:
parent
0e2ff4de8a
commit
5a6dc23524
@ -28,9 +28,11 @@ file2 = open("..\\scripts\\twblue.nsi", "w", encoding="utf-8")
|
||||
file2.write(contents)
|
||||
file2.close()
|
||||
print("done")
|
||||
print("Writing keys to module...")
|
||||
file3 = open("appkeys.py", "w")
|
||||
keys = """twitter_api_key = {}
|
||||
twitter_api_secret = {}
|
||||
keys = """twitter_api_key = "{}"
|
||||
twitter_api_secret = "{}"
|
||||
""".format(os.environ.get("TWITTER_API_KEY"), os.environ.get("TWITTER_API_SECRET"))
|
||||
file3.write(keys)
|
||||
file3.close()
|
||||
file3.close()
|
||||
print("Wrote set of keys for consumer of {}".format(os.environ.get("TWITTER_API_KEY")))
|
Loading…
Reference in New Issue
Block a user