добавил уведомление о регистрации в вк #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main Workflow | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Deploy to server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USER }} | |
key: ${{ secrets.SSH_KEY }} | |
passphrase: ${{ secrets.SSH_PASSPHRASE }} | |
script: | | |
cd /home/yc-user/Privet_Logoped_team_4/ | |
git pull origin dev | |
source /home/yc-user/Privet_Logoped_team_4/src/telegram_bot/venv/bin/activate | |
pip install -r src/telegram_bot/requirements.txt | |
alembic upgrade head | |
deactivate | |
source /home/yc-user/Privet_Logoped_team_4/src/vk_bot/venv/bin/activate | |
pip install -r src/vk_bot/requirements.txt | |
deactivate | |
sudo systemctl restart docker-compose-db.service | |
sudo systemctl restart telegram-bot.service | |
sudo systemctl restart vk-bot.service |