File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ workflow_dispatch :
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Node.js
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : ' 18'
24+
25+ - name : Cache dependencies
26+ uses : actions/cache@v4
27+ with :
28+ path : |
29+ node_modules
30+ example/node_modules
31+ ~/.cache/yarn
32+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33+ restore-keys : |
34+ ${{ runner.os }}-yarn-
35+
36+ - name : Install dependencies
37+ run : yarn install --frozen-lockfile
38+
39+ - name : Build website
40+ run : yarn build
41+
42+ - name : Setup Pages
43+ uses : actions/configure-pages@v5
44+
45+ - name : Upload artifact
46+ uses : actions/upload-pages-artifact@v3
47+ with :
48+ path : ' ./public'
49+
50+ - name : Deploy to GitHub Pages
51+ id : deployment
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments