diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 53eee89..5e72ee3 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -32,7 +32,12 @@ jobs: remote_key: ${{ secrets.AWS_GENERAL_SSH_KEY }} - name: Copy .env to remote server - run: scp .env ubuntu@${{ secrets.APP_SERVER_IP }}:/home/ubuntu/app/petlink/ + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.APP_SERVER_IP }} + username: ubuntu + key: ${{ secrets.AWS_GENERAL_SSH_KEY }} + script: scp .env ubuntu@${{ secrets.APP_SERVER_IP }}:/home/ubuntu/app/petlink/