File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy LiaScript Test Website
2+
3+ on :
4+ repository_dispatch :
5+ types : [trigger-build]
6+
7+ permissions :
8+ contents : write
9+ pages : write
10+ id-token : write
11+
12+ defaults :
13+ run :
14+ shell : bash
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Download LiaScript test branch
21+ run : git clone --branch test https://github.com/LiaScript/LiaScript.git
22+
23+ - name : Set up Node.js
24+ uses : actions/setup-node@v3
25+ with :
26+ node-version : " 20"
27+
28+ - name : Building LiaScript
29+ env :
30+ TRYSTERO_PEER_CONFIG : ${{ secrets.TRYSTERO_PEER_CONFIG }}
31+ WEBRTC_CONFIG : ${{ secrets.WEBRTC_CONFIG_TEST }}
32+ WEBRTC_SIGNALING : ${{ secrets.WEBRTC_SIGNALING_TEST }}
33+ WEBSOCKET_SERVER : ${{ secrets.WESOCKET_SERVER_TEST }}
34+ run : |
35+ cd LiaScript
36+ npm install
37+ npm run build
38+
39+ - name : Deploy to GitHub Pages
40+ uses : peaceiris/actions-gh-pages@v3
41+ with :
42+ github_token : ${{ secrets.GITHUB_TOKEN }}
43+ publish_dir : ./LiaScript/dist
44+ destination_dir : docs
45+ publish_branch : gh-pages
Original file line number Diff line number Diff line change 1- # test
2- Test project for upcomming LiaScript versions
1+ # Testing for LiaScript
2+
3+ This is used for testing purposes of LiaScript only ...
4+
5+ Create new testing branch by:
6+
7+ ``` bash
8+ git checkout test
9+ git reset --hard new/branch
10+ git push origin test -f
11+ ```
12+
13+ ... this will trigger a rebuild of the test branch, which will be deployed to:
14+
15+ https://liascript.github.io/test
You can’t perform that action at this time.
0 commit comments