diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index fb982a3b8..a5850ecff 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -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