Skip to content

feat: implement nginx files visualization with Bezier curves #11

feat: implement nginx files visualization with Bezier curves

feat: implement nginx files visualization with Bezier curves #11

Workflow file for this run

name: Deploy to Ubuntu Server
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
python -c "import app; print('App imports successfully')"
- name: Deploy to Ubuntu Server
if: github.ref == 'refs/heads/main'
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }}
script: |
cd /opt/ring0/kernel-ai
git pull origin main
sudo systemctl restart kernel-ai
sudo systemctl reload nginx
echo "Deployment completed successfully!"