2022-06-16 14:33:41 +05:30
|
|
|
name: Bot API Compiler
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
debug-builds:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Prepare for Compilation
|
|
|
|
run: |
|
|
|
|
git config --global user.name "XelXen"
|
|
|
|
git config --global user.email "78258352+XelXen@users.noreply.github.com"
|
|
|
|
git config --global credential.helper store
|
|
|
|
echo "https://XelXen:${{ secrets.GH_TOKEN }}@github.com" > ~/.git-credentials
|
|
|
|
|
2022-06-17 11:46:07 +05:30
|
|
|
- name: Run Script
|
2022-06-16 14:33:41 +05:30
|
|
|
run: |
|
2022-06-17 11:46:07 +05:30
|
|
|
chmod 755 .github/compiler.sh
|
|
|
|
.github/compiler.sh
|
2022-06-16 14:33:41 +05:30
|
|
|
|
|
|
|
- name: Binary Archive
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/LibreTubeAlpha/Telegram-BotAPI bot-api
|
|
|
|
rm -rf bot-api/*
|
2022-06-17 15:32:00 +05:30
|
|
|
mv ~/telegram-bot-api/bin/telegram-bot-api bot-api/exec
|
2022-06-16 14:33:41 +05:30
|
|
|
cd bot-api
|
|
|
|
git add -f *
|
|
|
|
git commit -m "WORKFLOW: BUILD BINARIES"
|
|
|
|
git push -u
|