File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,14 +44,12 @@ jobs:
4444 code-server-version : " 4.15.0"
4545 - run : command -V code-server
4646 - run : code-server --version
47- # demo-server:
48- # runs-on: ubuntu-latest
49- # steps:
50- # - uses: actions/checkout@v3
51- # - uses: ./
52- # - uses: cidebug/setup-cloudflare-tunnel@v1
53- # - run: |
54- # code-server --auth none --bind-addr 0.0.0.0:4000 &
55- # cloudflared tunnel --url http://localhost:4000 &
56- # sleep 500
57- # kill 0
47+ start-code-server :
48+ runs-on : ubuntu-latest
49+ steps :
50+ - uses : actions/checkout@v3
51+ - uses : ./
52+ - uses : ttyci/setup-cloudflared@v1
53+ - run : nohup code-server --auth none --bind-addr 0.0.0.0:4000 &
54+ - run : nohup cloudflared tunnel --url http://localhost:4000 &
55+ - run : sleep 5m
Original file line number Diff line number Diff line change 22set -ex
33
44if [[ $RUNNER_OS == Windows ]]; then
5+ pushd " $( mktemp -d) "
56 export FORCE_NODE_VERSION=18
67 old_script_shell=$( npm config get script-shell)
78 npm config set script-shell ' C:\Program Files\Git\bin\bash.exe'
89 npm install --global " code-server@$INPUT_CODE_SERVER_VERSION " --unsafe-perm
910 npm config set script-shell " $old_script_shell "
11+ popd
1012else
1113 if [[ $INPUT_CODE_SERVER_VERSION == latest ]]; then
1214 curl -fsSL https://code-server.dev/install.sh | sh -s -- \
You can’t perform that action at this time.
0 commit comments