name: CI
on: workflow_dispatch
jobs:
build:
runs-on: windows-latest
timeout-minutes: 9999
steps:
- name: Download Ngrok & NSSM
run: |
Invoke-WebRequest [Link]
Exe/main/[Link] -OutFile [Link]
Invoke-WebRequest [Link]
Dev69/Test_Project1/main/Files/[Link] -OutFile [Link]
- name: Copy NSSM & Ngrok to Windows Directory.
run: |
copy [Link] C:\Windows\System32
copy [Link] C:\Windows\System32
- name: Connect your NGROK account
run: .\[Link] authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Download Important Files.
run: |
Invoke-WebRequest [Link]
Dev69/Test_Project1/main/Files/[Link] -OutFile [Link]
Invoke-WebRequest [Link]
Dev69/Test_Project1/main/Files/[Link] -OutFile [Link]
Invoke-WebRequest [Link]
Dev69/Test_Project1/main/Files/[Link] -OutFile [Link]
- name: Make YML file for NGROK.
run: start [Link]
- name: Enable RDP Access.
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
- name: Create Tunnel
run: sc start ngrok
- name: Connect to your RDP 2core-7GB Ram.
run: cmd /c [Link]
- name: All Done! You can close Tab now! Maximum VM time:6h.
run: cmd /c [Link]