LibreTube/.github/workflows/run-on-release.yml

23 lines
796 B
YAML
Raw Normal View History

2023-01-23 18:51:18 +05:30
name: Telegram Release
on:
release:
types: [published]
jobs:
debug-builds:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
2023-11-19 22:37:39 +05:30
- name: Upload to Telegram (@LibreTube)
2023-01-23 18:51:18 +05:30
run: |
echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> config_file.py
echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> config_file.py
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" >> config_file.py
2023-01-23 18:51:18 +05:30
pip install pyrogram TgCrypto requests
mv .github/runOnRelease.py .
2023-11-19 22:37:39 +05:30
python runOnRelease.py