File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [ main ]
66 paths :
77 - ' backend/**'
8+ workflow_dispatch : # Allows you to trigger a deployment manually from the GitHub UI
89
910jobs :
1011 deploy :
3435 host : ${{ secrets.EC2_HOST }}
3536 username : ubuntu
3637 key : ${{ secrets.EC2_SSH_KEY }}
37- script : mkdir -p ~ /pasteCTL_web/backend
38+ script : mkdir -p /home/ubuntu /pasteCTL_web/backend
3839
3940 - name : Deploy server binary
4041 uses : appleboy/scp-action@v0.1.7
4344 username : ubuntu
4445 key : ${{ secrets.EC2_SSH_KEY }}
4546 source : " ./backend/server"
46- target : " ~ /pasteCTL_web/backend/"
47+ target : " /home/ubuntu /pasteCTL_web/backend/"
4748 strip_components : 1
4849 overwrite : true
4950
5455 username : ubuntu
5556 key : ${{ secrets.EC2_SSH_KEY }}
5657 script : |
57- sudo chmod +x ~ /pasteCTL_web/backend/server
58- sudo systemctl restart pasteCTL-backend.service
58+ sudo chmod +x /home/ubuntu /pasteCTL_web/backend/server
59+ sudo systemctl restart pasteCTL-backend.service
You can’t perform that action at this time.
0 commit comments