File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,22 +40,22 @@ jobs:
4040 uses : appleboy/scp-action@master
4141 with :
4242 host : ${{ secrets.VPS_HOST }}
43- username : ${{ secrets.VPS_USERNAME }}
43+ username : deploy
4444 key : ${{ secrets.VPS_SSH_KEY }}
4545 port : ${{ secrets.VPS_PORT || 22 }}
46- source : " dist/,package.json,pnpm-lock.yaml"
47- target : " /home/${{ secrets.VPS_USERNAME }} /elearning-backend"
46+ source : " dist/,package.json,pnpm-lock.yaml,deploy.sh "
47+ target : " /home/deploy /elearning-backend"
4848 strip_components : 0
4949
5050 - name : Execute deployment script on VPS
5151 uses : appleboy/ssh-action@master
5252 with :
5353 host : ${{ secrets.VPS_HOST }}
54- username : ${{ secrets.VPS_USERNAME }}
54+ username : deploy
5555 key : ${{ secrets.VPS_SSH_KEY }}
5656 port : ${{ secrets.VPS_PORT || 22 }}
5757 script : |
58- cd /home/${{ secrets.VPS_USERNAME }} /elearning-backend
58+ cd /home/deploy /elearning-backend
5959 chmod +x deploy.sh
6060 ./deploy.sh
6161
You can’t perform that action at this time.
0 commit comments