1
0
mirror of https://github.com/libre-tube/LibreTube.git synced 2024-12-15 23:00:31 +05:30
LibreTube/.github/workflows/api-compiler.yml

33 lines
963 B
YAML
Raw Normal View History

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: |
2022-09-18 16:44:37 +05:30
git config --global user.name "alefvanoon"
git config --global user.email "53198048+alefvanoon@users.noreply.github.com"
2022-06-16 14:33:41 +05:30
git config --global credential.helper store
2022-09-18 16:44:37 +05:30
echo "https://alefvanoon:${{ secrets.GH_TOKEN }}@github.com" > ~/.git-credentials
2022-06-16 14:33:41 +05:30
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
2022-09-17 23:28:46 +05:30
- name: Upload to Archive
2022-06-16 14:33:41 +05:30
run: |
2022-09-17 23:28:46 +05:30
git clone https://github.com/LibreTubeAlpha/Archive bot-api
rm -rf bot-api/exec
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"
2022-09-18 16:44:37 +05:30
git push -u