From 2fec9db33010bf904f8fcda39e50133072460c1a Mon Sep 17 00:00:00 2001 From: suwuwueu Date: Tue, 15 Jul 2025 03:36:40 +0300 Subject: [PATCH] Update README.md --- README.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d7b0286..dfaaef6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,26 @@ -code -==== +name: CI -Source Code for Go In Action examples +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + steps: + - name: Download ngrok + run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip + - name: Extract ngrok + run: Expand-Archive ngrok.zip + - name: Authenticate with ngrok + run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN + env: + NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} + - name: Enable Remote Desktop + run: | + Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0 + Enable-NetFirewallRule -DisplayGroup "Remote Desktop" + Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1 + Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force) + - name: Create ngrok tunnel to remote desktop + run: .\ngrok\ngrok.exe tcp 3389