2022-11-27 20:59:42 +05:30
|
|
|
from os import system as run, listdir, remove
|
2022-09-21 19:34:55 +05:30
|
|
|
import tgconfig
|
|
|
|
|
2022-11-27 20:59:42 +05:30
|
|
|
|
|
|
|
files, signed_files, unsigned_files = listdir(), [], []
|
|
|
|
for file in files:
|
|
|
|
if file.endswith("signed.apk"):
|
|
|
|
signed_files.append(file)
|
|
|
|
elif file.endswith(".apk"):
|
|
|
|
unsigned_files.append(file)
|
|
|
|
|
|
|
|
if len(signed_files):
|
|
|
|
for file in unsigned_files:
|
|
|
|
remove(file)
|
|
|
|
|
2022-09-21 19:52:40 +05:30
|
|
|
if tgconfig.GH_REPO.lower() == "libre-tube/libretube":
|
2022-09-21 19:34:55 +05:30
|
|
|
run("git add -f *")
|
|
|
|
run('git commit -m "WORKFLOW: ALPHA BUILDS"')
|
2022-09-22 11:21:14 +05:30
|
|
|
run("git push -u")
|
|
|
|
else:
|
2022-11-27 20:59:42 +05:30
|
|
|
print("Official Repo not Detected")
|