File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI and Deploy to GitHub Pages
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ push :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v2
18+
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v2
21+ with :
22+ node-version : ' 22'
23+
24+ - name : Install dependencies
25+ run : npm ci
26+
27+ - name : Run Tests
28+ run : npm run ci:test-headless
29+
30+ - name : Build the project
31+ run : npm run build --prod -- --base-href /
32+
33+ deploy :
34+ if : github.event_name == 'push' || github.event_name == 'release'
35+ runs-on : ubuntu-latest
36+ steps :
37+ - name : Checkout code
38+ uses : actions/checkout@v2
39+
40+ - name : Set up Node.js
41+ uses : actions/setup-node@v2
42+ with :
43+ node-version : ' 22'
44+
45+ - name : Install dependencies
46+ run : npm install
47+
48+ - name : Build the project
49+ run : npm run build --prod -- --base-href /
50+
51+ - name : Create .nojekyll file
52+ run : echo > ./dist/s-qee-z-scripting-language.github.io/browser/.nojekyll
53+
54+ - name : Deploy to GitHub Pages
55+ uses : peaceiris/actions-gh-pages@v3
56+ with :
57+ github_token : ${{ secrets.GITHUB_TOKEN }}
58+ publish_dir : ./dist/s-qee-z-scripting-language.github.io/browser
59+ destination_dir : /
60+ commit_message : ' Deploy to GitHub Pages'
61+ allow_empty_commit : true
You can’t perform that action at this time.
0 commit comments