Skip to content

Commit

Permalink
fixed syntax in yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Egatlov committed Jul 18, 2024
1 parent b616a1b commit 44a1b55
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ jobs:
- name: Build project
run: npm run build

- name: Copy SSH key
run: |
echo "${{ secrets.EC2_KEY }}" > key.pem
chmod 600 key.pem
- name: Deploy to EC2
env:
EC2_HOST: ${{ secrets.EC2_HOST }}
EC2_USER: ${{ secrets.EC2_USER }}
EC2_KEY: ${{ secrets.EC2_KEY }}
run: |
ssh -o StrictHostKeyChecking=no -i $EC2_KEY $EC2_USER@$EC2_HOST << 'EOF'
ssh -o StrictHostKeyChecking=no -i key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF'
cd /home/ubuntu/ethora-docs
chmod +x deploy.sh
./deploy.sh
EOF
EOF

0 comments on commit 44a1b55

Please sign in to comment.