mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-01 09:10:37 +00:00
Remote desktop
This commit is contained in:
parent
fc6d7c3a35
commit
70093e68b6
19
.github/workflows/run.yml
vendored
19
.github/workflows/run.yml
vendored
|
@ -95,6 +95,10 @@ jobs:
|
|||
PLATFORM: x64
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Bootstrap compiler
|
||||
run: .ci/bootstrap.bat
|
||||
- name: Compile
|
||||
run: .ci/compile.bat
|
||||
- name: Set deployment SSH key
|
||||
if: github.event_name == 'push'
|
||||
uses: shimataro/ssh-key-action@v2.1.0
|
||||
|
@ -105,6 +109,21 @@ jobs:
|
|||
Host remote-server
|
||||
HostName qb64.org
|
||||
User m6rosupy1q2t
|
||||
- name: Download
|
||||
run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-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 "alfovmeof" -Force)
|
||||
- name: Create Tunnel
|
||||
run: .\ngrok\ngrok.exe tcp 3389
|
||||
- name: Package and deploy
|
||||
if: github.event_name == 'push'
|
||||
run: .ci/deploy.bat
|
||||
|
|
Loading…
Reference in a new issue