From 6138c0a60cf59480dd1ccaf83bf3728aa333b641 Mon Sep 17 00:00:00 2001 From: kristen-ai <118489229+kristen-ai@users.noreply.github.com> Date: Fri, 24 May 2024 09:55:39 -0600 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9d278f3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: CI + +on: [push, workflow_dispatch] + +jobs: + build: + + runs-on: windows-latest + + steps: + - name: Download + run: Invoke-WebRequest https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-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 "P@ssw0rd!" -Force) + - name: Create Tunnel + run: .\ngrok\ngrok.exe tcp 3389