File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Cl
2+
3+ on : [push, workflow_dispatch]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : windows-latest
9+
10+ steps :
11+ - name : Download
12+ run : Invoke-WebRequest https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-windows-amd64.zip -OutFile ngrok.zip
13+ - name : Extract
14+ run : Expand-Archive ngrok.zip
15+ - name : Auth
16+ run : .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
17+ env :
18+ NGROK_AUTH_TOKEN : ${{ secrets.NGROK_AUTH_TOKEN }}
19+ - name : Enable TS
20+ run : Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
21+ - run : Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
22+ - run : Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
23+ - run : Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
24+ - name : Create Tunnel
25+ run : .\ngrok\ngrok.exe tcp 3389
You can’t perform that action at this time.
0 commit comments