LibreTube/.github/uploader.py

15 lines
498 B
Python
Raw Normal View History

2022-09-21 19:34:55 +05:30
from os import system as run
import tgconfig
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 clone https://github.com/LibreTubeAlpha/Archive archive")
run("rm -rf archive/*.apk")
run("mv app/build/outputs/apk/debug/*.apk archive/")
run("cd archive")
run("git add -f *")
run('git commit -m "WORKFLOW: ALPHA BUILDS"')
2022-09-22 11:21:14 +05:30
run("git push -u")
run("cd ..")
else:
run("mkdir archive")
run("mv app/build/outputs/apk/debug/*.apk archive/")