fix: copy code into /app/agent so module path resolves #2
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 Hostinger | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "agent/**" | |
| - "SOUL.md" | |
| - "AGENTS.md" | |
| - ".github/workflows/deploy.yml" | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: SSH into Hostinger and pull | |
| uses: appleboy/ssh-action@v1.0.3 | |
| with: | |
| host: ${{ secrets.HOSTINGER_HOST }} | |
| username: ${{ secrets.HOSTINGER_USER }} | |
| key: ${{ secrets.HOSTINGER_SSH_KEY }} | |
| port: ${{ secrets.HOSTINGER_PORT || 22 }} | |
| script: | | |
| set -euo pipefail | |
| cd /root/SolidState | |
| git fetch origin | |
| git reset --hard origin/main | |
| bash agent/scripts/deploy.sh |