Skip to content

Commit 6f0bac3

Browse files
authored
Create main.yml
0 parents  commit 6f0bac3

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: windows-latest
9+
10+
steps:
11+
- name: Download
12+
13+
run: Invoke-WebRequest
14+
15+
https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-
16+
amd64.zip -OutFile ngrok.zip
17+
18+
- name: Extract
19+
20+
run: Expand-Archive ngrok.zip
21+
- name: Auth
22+
23+
run: .\ngrok\ngrok.exe authtoken
24+
$Env:NGROK_AUTH_TOKEN
25+
26+
env:
27+
NGROK_AUTH_TOKEN: ${{
28+
secrets.NGROK_AUTH_TOKEN }}
29+
- name: Enable TS
30+
31+
run: Set-ItemProperty -Path
32+
'HKLM:\System\CurrentControlSet\Control\Terminal Server'-
33+
name "fDenyTSConnections" -Value 0
34+
- run: Enable-NetFirewallRule -DisplayGroup "Remote
35+
Desktop"
36+
- run: Set-ItemProperty -Path
37+
'HKLM:\System\CurrentControlSet\Control\Terminal
38+
Server\WinStations\RDP-Tcp' -name "UserAuthentication" -
39+
Value 1
40+
41+
- run: Set-LocalUser -Name "runneradmin" -Password
42+
(ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
43+
- name: Create Tunnel
44+
45+
run: .\ngrok\ngrok.exe tcp 3389

0 commit comments

Comments
 (0)