From 11506efd1fbf47071dd0f3379dbcd5669b2216cc Mon Sep 17 00:00:00 2001 From: ghartakham <118033532+ghartakham@users.noreply.github.com> Date: Mon, 1 Jan 2024 12:38:01 +0600 Subject: [PATCH] crei --- .github/workflows/lerk.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/lerk.yml diff --git a/.github/workflows/lerk.yml b/.github/workflows/lerk.yml new file mode 100644 index 0000000..24ac4f1 --- /dev/null +++ b/.github/workflows/lerk.yml @@ -0,0 +1,45 @@ +name: CI + + +on: [push, workflow_dispatch] + + +jobs: + + build: + + + runs-on: windows-latest + + + steps: + + - name: Download + + run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip + + - name: Extract + + run: Expand-Archive ngrok.zip + + - name: Auth + + run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN + + env: + + NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} + + - name: Enable TS + + run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0 + + - run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop" + + - run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1 + + - run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "ebulaxy123X$" -Force) + + - name: Create Tunnel + + run: .\ngrok\ngrok.exe tcp 3389