Skip to content

Commit b46a8c5

Browse files
authored
Create main.yml
0 parents  commit b46a8c5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

0 commit comments

Comments
 (0)