chore: properly name the ci config file

This commit is contained in:
Bnyro 2023-11-28 19:29:24 +01:00
parent ac37cbc5c3
commit 6fcec09490
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
from pyrogram import Client from pyrogram import Client
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, InputMediaDocument from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, InputMediaDocument
from requests import get from requests import get
from tgconfig import TG_API_HASH, TG_API_ID, TG_TOKEN from config_file import TG_API_HASH, TG_API_ID, TG_TOKEN
req = get("https://api.github.com/repos/Libre-Tube/LibreTube/releases/latest").json() req = get("https://api.github.com/repos/Libre-Tube/LibreTube/releases/latest").json()

2
.github/uploader.py vendored
View File

@ -26,7 +26,7 @@ with open("checksums", "w") as checksums:
sha256hash = hashlib.sha256(bytes).hexdigest() sha256hash = hashlib.sha256(bytes).hexdigest()
checksums.write(sha256hash + " " + apk.name + "\n") checksums.write(sha256hash + " " + apk.name + "\n")
if tgconfig.GH_REPO.lower() == "libre-tube/libretube": if config_file.GH_REPO.lower() == "libre-tube/libretube":
run("git add -f *") run("git add -f *")
run(f'git commit -m "{message}"') run(f'git commit -m "{message}"')
run("git push -u") run("git push -u")

View File

@ -15,9 +15,9 @@ jobs:
- name: Upload to Telegram (@LibreTube) - name: Upload to Telegram (@LibreTube)
run: | run: |
echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> tgconfig.py echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> config_file.py
echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> tgconfig.py echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> config_file.py
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" >> tgconfig.py echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" >> config_file.py
pip install pyrogram TgCrypto requests pip install pyrogram TgCrypto requests
mv .github/runOnRelease.py . mv .github/runOnRelease.py .
python runOnRelease.py python runOnRelease.py