89ef1350c5
- Change from fixing only .git/ to fixing entire repository (.) - Prevents "unable to unlink" errors on workflow files - Ensures deployment user has write access to all files - Run unconditionally as it's fast and prevents all permission issues Fixes: "error: unable to unlink old '.github/workflows/deploy.yml': Permission denied"
GitHub Actions Workflows
deploy.yml - Automated Deployment
Trigger: Push to main branch or manual dispatch
What it does:
- SSH into your server
git pull origin mainsudo systemctl restart cv-server- Verify deployment via health check
Required GitHub Secrets:
SSH_PRIVATE_KEY- SSH private key for server accessSSH_HOST- Server IP or domainSSH_USER- SSH username
Optional GitHub Secrets:
SSH_PORT(default:22)SERVICE_NAME(default:cv-server)REPO_PATH(default:/opt/cv-server)
Manual deployment: Go to Actions → Deploy CV Server → Run workflow
Setup guide: See GITHUB-ACTION-SETUP.md