diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b328495..11a6954 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,6 +42,12 @@ jobs: - name: Create SSH Key Directory run: mkdir -p ~/.ssh + - name: Create SSH Key File + run: | + echo "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/id_rsa + cat ~/.ssh/id_rsa # 디버그용: 키 파일 내용을 출력 + chmod 600 ~/.ssh/id_rsa + - name: Create SSH Key File run: | echo "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/id_rsa