Skip to content

Commit

Permalink
add source nvm.sh to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RbAvci committed Jun 20, 2024
1 parent cfdccf3 commit 66277e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ec2-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
- name: Connect to EC2 and deploy
run: |
ssh -i ~/.ssh/id_rsa ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} "cd Full-Stack-Project-Assessment && git checkout main && git pull"
- name: Connect to EC2 and build
run: |
ssh -i ~/.ssh/id_rsa ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} "cd Full-Stack-Project-Assessment && npm run build"
ssh -i ~/.ssh/id_rsa ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} "\
source ~/.nvm/nvm.sh && \
cd Full-Stack-Project-Assessment && \
git checkout main && \
git pull && \
npm run build"

0 comments on commit 66277e5

Please sign in to comment.