Skip to content

Commit 5cce3f4

Browse files
Add test deploy
1 parent 1702df1 commit 5cce3f4

2 files changed

Lines changed: 72 additions & 2 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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: Set ELM_HOME
29+
run: echo "ELM_HOME=${GITHUB_WORKSPACE}/.elm" >> $GITHUB_ENV
30+
31+
# build LiaScript
32+
- name: LiaScript - download
33+
run: git clone --branch development https://github.com/LiaScript/LiaScript.git
34+
- name: LiaScript - prebuild
35+
run: |
36+
cd LiaScript
37+
npm install
38+
npm run prebuild
39+
- name: LiaScript - patches
40+
run: |
41+
cd LiaScript
42+
git submodule update --init --recursive
43+
cd patches
44+
make
45+
cd ..
46+
rm -rf elm-stuff .parcel-cache
47+
- name: LiaScript - build
48+
run: |
49+
cd LiaScript
50+
make all2 KEY="${{ secrets.RESPONSIVEVOICE_KEY }}"
51+
52+
- name: Deploy to GitHub Pages
53+
uses: peaceiris/actions-gh-pages@v3
54+
with:
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
publish_dir: ./LiaScript/dist
57+
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)