Issue
I am using GitHub actions to build a .NET MVC framework based application.
I am able to build it successfully but unable to copy the resultant .exe
file to Windows based ec2-instance, since I cant ssh into it.
I have looked for plugins but unable to find any.
Is there any plugin or way to do that from GitHub actions?
Solution
considering an article like "Deploy to AWS EC2 using GitHub Actions" (from niksmac, also on SO) suggests to use SSH to deploy, the first avenue would be to activate SSH on your Windows EC2 instance.
According to "Can we SSH to Windows EC2 instance in AWS?" through using OpenSSH on Windows.
From there, you can see here an SSH deploy in action.
Answered By - VonC Answer Checked By - Candace Johnson (WPSolving Volunteer)