From 1fcb96d038a8995590685cbefdd4d98acaa9af76 Mon Sep 17 00:00:00 2001 From: Edouard Date: Wed, 11 Dec 2024 00:55:57 +0100 Subject: [PATCH] fix --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 11476f0..8686223 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,6 +26,12 @@ jobs: - name: Build Next.js App run: npm run build + - name: Set up SSH Key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/deploy_key + chmod 600 ~/.ssh/deploy_key + - name: Copy Files to EC2 env: EC2_HOST: ubuntu@51.20.135.233