mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Add misc repo check for git uploads
This commit is contained in:
parent
70f131a70e
commit
0c873aa10b
11
.github/uploader.py
vendored
Normal file
11
.github/uploader.py
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from os import system as run
|
||||||
|
import tgconfig
|
||||||
|
|
||||||
|
if 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")
|
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -57,13 +57,9 @@ jobs:
|
|||||||
- name: Upload to Archive
|
- name: Upload to Archive
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/LibreTubeAlpha/Archive archive
|
mv .github/uploader.py .
|
||||||
rm -rf archive/*.apk
|
echo "GH_REPO = '${{ github.repository }}'" > tgconfig.py
|
||||||
mv app/build/outputs/apk/debug/*.apk archive/
|
python uploader.py
|
||||||
cd archive
|
|
||||||
git add -f *
|
|
||||||
git commit -m "WORKFLOW: ALPHA BUILDS"
|
|
||||||
git push -u
|
|
||||||
|
|
||||||
- name: Telegram Bot
|
- name: Telegram Bot
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@ -72,7 +68,8 @@ jobs:
|
|||||||
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
|
curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/exec --output bot-api
|
||||||
chmod 755 ./bot-api
|
chmod 755 ./bot-api
|
||||||
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" > tgconfig.py
|
mv ../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
|
||||||
echo "TG_POST_ID = '${{ secrets.TG_POST_ID }}'" >> tgconfig.py
|
echo "TG_POST_ID = '${{ secrets.TG_POST_ID }}'" >> tgconfig.py
|
||||||
echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> tgconfig.py
|
echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> tgconfig.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user