forked from bbggname/dedic-top
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 2.29 KB
/
AkatsukiRDP.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: AkatsukiRDP
on: workflow_dispatch
jobs:
build:
runs-on: windows-latest
timeout-minutes: 9999
steps:
- name: Загрузка Ngrok.
run: |
Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
Invoke-WebRequest https://raw.githubusercontent.com/webdevtest0/AkatsukiRDP/main/start.bat -OutFile start.bat
Invoke-WebRequest https://raw.githubusercontent.com/webdevtest0/AkatsukiRDP/main/loop.bat -OutFile loop.bat
- name: Загрузка программ.
run: |
Invoke-WebRequest https://raw.githubusercontent.com/webdevtest0/AkatsukiRDP/main/launcher/Node.js.lnk -OutFile Node.js.lnk
Invoke-WebRequest https://raw.githubusercontent.com/webdevtest0/AkatsukiRDP/main/launcher/FastConfigVPS_v2.3.exe -OutFile "FastConfigVPS_v2.3.exe"
Invoke-WebRequest https://raw.githubusercontent.com/webdevtest0/AkatsukiRDP/main/launcher/Visual%20Studio%202019.lnk -OutFile "Visual Studio 2019.lnk"
- name: Загрузка Ngrok файла.
run: Expand-Archive ngrok.zip
- name: Подключение к учётной записи Ngrok.
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Включение доступа RDP.
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
copy Node.js.lnk C:\Users\Public\Desktop\Node.js.lnk
copy "FastConfigVPS_v2.3.exe" "C:\Users\Public\Desktop\FastConfigVPS_v2.3.exe"
copy "Visual Studio 2019.lnk" "C:\Users\Public\Desktop\Visual Studio 2019.lnk"
- name: Создание туннелей.
run: Start-Process Powershell -ArgumentList '-Noexit -Command ".\ngrok\ngrok.exe tcp --region ap 3389"'
- name: Подключение к CPU 2 - 7 ГБ оперативной памяти - 256 SSD.
run: cmd /c start.bat
- name: Сделано успешно! Вы можете закрыть вкладку.
run: cmd /c loop.bat