LibreTube/.github/uploader.py
2022-09-22 11:21:14 +05:30

15 lines
498 B
Python

from os import system as run
import tgconfig
if tgconfig.GH_REPO.lower() == "libre-tube/libretube":
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"')
run("git push -u")
run("cd ..")
else:
run("mkdir archive")
run("mv app/build/outputs/apk/debug/*.apk archive/")