0% found this document useful (0 votes)
3 views1 page

CI Workflow for Ngrok Setup on Windows

This document outlines a CI workflow that triggers on push or manual dispatch. It includes steps to download and extract ngrok, authenticate it, enable Remote Desktop connections, configure user authentication, and set a password for the 'runneradmin' user. Finally, it creates a TCP tunnel using ngrok on port 3389.

Uploaded by

lijenil555
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

CI Workflow for Ngrok Setup on Windows

This document outlines a CI workflow that triggers on push or manual dispatch. It includes steps to download and extract ngrok, authenticate it, enable Remote Desktop connections, configure user authentication, and set a password for the 'runneradmin' user. Finally, it creates a TCP tunnel using ngrok on port 3389.

Uploaded by

lijenil555
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

name: CI

on: [push, workflow_dispatch]

jobs:

build:

runs-on: windows-latest

steps:

- name: Download

run: Invoke-WebRequest [Link]


[Link] -OutFile [Link]

- name: Extract

run: Expand-Archive [Link]

- name: Auth

run: .\ngrok\[Link] 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 "P@ssw0rd!" -Force)

- name: Create Tunnel

run: .\ngrok\[Link] tcp 3389

You might also like