Addded Google genAi requirement #3
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: Deploy in Push to stable branch | |
on: | |
push: | |
branches: | |
- stable | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Pull and deploy on server | |
run: | | |
ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} << 'EOF' | |
cd /home/GoSL/GoSL | |
git pull origin stable | |
sudo systemctl daemon-reload | |
sudo systemctl restart gunicorn | |
sudo systemctl reload nginx | |
EOF |