Skip to content

Commit

Permalink
update ssh command after deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafakamal22 committed Sep 17, 2024
1 parent ce3da13 commit f49af2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
# Step 4: Install dependencies and build the project on the server using a custom SSH port
- name: 🔧 Install and Build on Server
run: |
sshpass -p "${{ vars.SSH_PASSWORD }}" ssh -p ${{ vars.SSH_PORT }} ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} << 'EOF'
cd /home/tbtouris/api
npm install
npm run build
EOF
sshpass -p "${{ secrets.SSH_PASSWORD }}" ssh -T -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF'
cd /home/tbtouris/api
npm install
npm run build
EOF
env:
SSH_PASSWORD: ${{ vars.SSH_PASSWORD }}
SSH_USER: ${{ vars.SSH_USER }}
Expand Down

0 comments on commit f49af2c

Please sign in to comment.