File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Demo and Deploy to Github Pages
2+ permissions :
3+ contents : write
4+ on :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout Repository
15+ uses : actions/checkout@v4
16+
17+ - name : Set up Node.js
18+ uses : actions/setup-node@v2
19+ with :
20+ node-version : " 18"
21+
22+ - name : Install and Build
23+ run : npm install && npm run build:web
24+
25+ - name : Extra Files
26+ run : |
27+ # Switch to the generated directory
28+ cd dist
29+
30+ # Set custom domain for GitHub Pages
31+ # echo "youdomain.com" > CNAME
32+
33+ # Required to bypass Jekyll on GitHub Pages
34+ echo "" > .nojekyll
35+
36+ - name : Deploy
37+ uses : JamesIves/github-pages-deploy-action@4.1.7
38+ with :
39+ single-commit : true
40+ branch : gh-pages
41+ clean : true
42+ folder : dist
You can’t perform that action at this time.
0 commit comments