Skip to content

Commit 4dcaf9c

Browse files
Add test deploy
1 parent 1702df1 commit 4dcaf9c

2 files changed

Lines changed: 60 additions & 2 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
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

0 commit comments

Comments
 (0)