Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devnsko committed Nov 10, 2024
1 parent 5f35e2e commit 4c5de98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Deploy to Server
uses: appleboy/[email protected]
with:
Expand All @@ -34,10 +20,9 @@ jobs:
script: |
cd /opt/ai-bee
git pull origin main
source venv/bin/activate
source venv/bin/activate || python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
# Создание .env файла на сервере
echo "BEE_TOKEN=${{ secrets.BEE_TOKEN }}" > .env
echo "AI_TOKEN=${{ secrets.AI_TOKEN }}" >> .env
echo "ADMIN_ID=${{ secrets.ADMIN_ID }}" >> .env
Expand All @@ -47,5 +32,4 @@ jobs:
echo "DATABASE_NAME=${{ secrets.DATABASE_NAME }}" >> .env
echo "DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}" >> .env
# Перезапуск службы
sudo systemctl restart aibee.service
17 changes: 0 additions & 17 deletions Dockerfile

This file was deleted.

0 comments on commit 4c5de98

Please sign in to comment.