File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Go to your repo → **Settings** → **Secrets and variables** → **Actions**
4848| ` SSH_USERNAME ` | SSH user with access to the project directory |
4949| ` SSH_KEY ` | Private SSH key (no passphrase) |
5050| ` SSH_PASSWORD ` | SSH password with access to the project directory |
51- | ` PROJECT_PATH ` | Absolute path of the Git project on the server |
51+ | ` PROJECT_DIRECTORY ` | Absolute path of the Git project on the server |
5252| ` RESTART_COMMAND ` | Command to restart the service or PM2 app |
5353
5454---
7979 - name : Connect and Deploy
8080 run : |
8181 ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} << 'EOF'
82- cd ${{ secrets.PROJECT_PATH }}
82+ cd ${{ secrets.PROJECT_DIRECTORY }}
8383 git fetch origin main
8484 git reset --hard origin/main
8585 git clean -fd
You can’t perform that action at this time.
0 commit comments