Automatically deploy PowerShell script to Windows server

I want to do the yml script (github action) to automatically deploy PowerShell script to Windows server. How can I do that?