diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6ece95f..daa6e26 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,14 +13,14 @@ jobs: - name: Debug Secret run: | - echo "EC2_SSH_KEY is set: ${{ secrets.EC2_SSH_KEY != '' }}" + echo "EC2_SSH_KEY is set: ${{ secrets.AWS_INSTANCE_SSH_PRIVATE_KEY != '' }}" echo "KNOWN_HOSTS is set: ${{ secrets.KNOWN_HOSTS != '' }}" echo "AWS_INSTANCE_IP is set: ${{ secrets.AWS_INSTANCE_IP != '' }}" - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: - key: ${{ secrets.EC2_SSH_KEY }} + key: ${{ secrets.AWS_INSTANCE_SSH_PRIVATE_KEY }} known_hosts: ${{ secrets.KNOWN_HOSTS }} - name: Deploy to EC2