File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy to GitHub Pages
22
33on :
4- push :
5- branches :
6- - main
7- workflow_dispatch :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
88
99permissions :
10- contents : read
11- pages : write
12- id-token : write
10+ contents : read
11+ pages : write
12+ id-token : write
1313
1414jobs :
15- build_and_deploy :
16- runs-on : ubuntu-latest
17- steps :
18- - name : Checkout
19- uses : actions/checkout@v4
20-
21- - name : Setup Node.js
22- uses : actions/setup-node@v4
23- with :
24- node-version : ' 18 '
25-
26- - name : Install dependencies
27- run : npm ci
28-
29- - name : Type check
30- run : npx tsc --noEmit
31-
32- - name : Build
33- run : npm run build
34-
35- - name : Upload artifact for GitHub Pages
36- uses : actions/upload-pages-artifact@v1
37- with :
38- path : ./dist
39-
40- deploy :
41- needs : build_and_deploy
42- runs-on : ubuntu-latest
43- steps :
44- - name : Deploy to GitHub Pages
45- uses : actions/deploy-pages@v1
15+ build_and_deploy :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+
21+ - name : Setup Node.js
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : " 18 "
25+
26+ - name : Install dependencies
27+ run : npm ci
28+
29+ - name : Type check
30+ run : npx tsc --noEmit
31+
32+ - name : Build
33+ run : npm run build
34+
35+ - name : Upload artifact for GitHub Pages
36+ uses : actions/upload-pages-artifact@v1
37+ with :
38+ path : ./dist
39+
40+ deploy :
41+ needs : build_and_deploy
42+ runs-on : ubuntu-latest
43+ steps :
44+ - name : Deploy to GitHub Pages
45+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments