mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Fix Archive Uploads
This commit is contained in:
parent
41990b440e
commit
f722ac40a9
2
.github/tg.py
vendored
2
.github/tg.py
vendored
@ -6,7 +6,7 @@ from os import system
|
|||||||
from time import sleep as wait
|
from time import sleep as wait
|
||||||
|
|
||||||
def deploy():
|
def deploy():
|
||||||
system(f'./bot-api --local --api-id={TG_API_ID} --api-hash={TG_API_HASH}')
|
system(f'./exec --local --api-id={TG_API_ID} --api-hash={TG_API_HASH}')
|
||||||
|
|
||||||
def bot():
|
def bot():
|
||||||
wait(10)
|
wait(10)
|
||||||
|
8
.github/uploader.py
vendored
8
.github/uploader.py
vendored
@ -2,14 +2,8 @@ from os import system as run
|
|||||||
import tgconfig
|
import tgconfig
|
||||||
|
|
||||||
if tgconfig.GH_REPO.lower() == "libre-tube/libretube":
|
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 add -f *")
|
||||||
run('git commit -m "WORKFLOW: ALPHA BUILDS"')
|
run('git commit -m "WORKFLOW: ALPHA BUILDS"')
|
||||||
run("git push -u")
|
run("git push -u")
|
||||||
run("cd ..")
|
|
||||||
else:
|
else:
|
||||||
run("mkdir archive")
|
print("Official Repo not Detected")
|
||||||
run("mv app/build/outputs/apk/debug/*.apk archive/")
|
|
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -59,6 +59,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mv .github/uploader.py .
|
mv .github/uploader.py .
|
||||||
echo "GH_REPO = '${{ github.repository }}'" > tgconfig.py
|
echo "GH_REPO = '${{ github.repository }}'" > tgconfig.py
|
||||||
|
git clone https://github.com/LibreTubeAlpha/Archive archive
|
||||||
|
rm -rf archive/*.apk
|
||||||
|
mv app/build/outputs/apk/debug/*.apk archive/
|
||||||
|
cd archive
|
||||||
python uploader.py
|
python uploader.py
|
||||||
|
|
||||||
- name: Telegram Bot
|
- name: Telegram Bot
|
||||||
@ -66,8 +70,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd archive
|
cd archive
|
||||||
curl https://libre-tube.github.io/images/LibreAlpha.png --output alpha.png
|
curl https://libre-tube.github.io/images/LibreAlpha.png --output alpha.png
|
||||||
curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/exec --output bot-api
|
chmod 755 ./exec
|
||||||
chmod 755 ./bot-api
|
|
||||||
mv ../tgconfig.py .
|
mv ../tgconfig.py .
|
||||||
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" >> tgconfig.py
|
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" >> tgconfig.py
|
||||||
echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> tgconfig.py
|
echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> tgconfig.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user