mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-12 21:30:30 +05:30
chore: properly name the ci config file
This commit is contained in:
parent
ac37cbc5c3
commit
6fcec09490
2
.github/runOnRelease.py
vendored
2
.github/runOnRelease.py
vendored
@ -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
2
.github/uploader.py
vendored
@ -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")
|
||||||
|
6
.github/workflows/run-on-release.yml
vendored
6
.github/workflows/run-on-release.yml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user