ngrok SSH tunnel (Windows) #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "ngrok SSH tunnel (Windows)" | |
on: | |
workflow_dispatch: | |
jobs: | |
ngrok_ssh_tunnel: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Choco and SSH server | |
run: | | |
choco install -y openssh -params '"/SSHServerFeature /KeyBasedAuthenticationFeature"' | |
shell: powershell | |
- name: Start SSH via ngrok | |
run: | | |
echo 'C:\msys64\usr\bin' >> $GITHUB_PATH | |
./start_ngrok_tunnel.sh | |
env: | |
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }} | |
USER_PASS: ${{ secrets.NGROK_PASS }} | |
shell: bash | |
- name: Keep tunnel alive for 24 hours | |
run: sleep 86400 | |
shell: bash |