Merge pull request #61 from khoshov/feature/update-ui #7
This file contains hidden or 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 to Dev. server | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Deploy | |
| uses: appleboy/ssh-action@v1.0.0 | |
| with: | |
| host: ${{ secrets.DEV_SERVER_HOST }} | |
| username: ${{ secrets.DEV_SSH_USERNAME }} | |
| key: ${{ secrets.DEV_SSH_PRIVATE_KEY }} | |
| script: | | |
| cd ${{ secrets.DEV_PROJECT_PATH }} | |
| git pull origin develop | |
| uv sync --no-dev | |
| uv run manage.py migrate | |
| sudo systemctl restart pythonbooks | |
| cd pythonbooks | |
| cd frontend | |
| npm i | |
| npm run build | |
| echo "Deployment successful!" |