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 : Build and Deploy to GitHub Pages
2-
32on :
43 push :
54 branches : [main]
6- workflow_dispatch :
7-
85permissions :
96 contents : read
107 pages : write
118 id-token : write
12-
13- concurrency :
14- group : pages
15- cancel-in-progress : false
16-
179jobs :
1810 build :
1911 runs-on : ubuntu-latest
2012 steps :
21- - name : Checkout
22- uses : actions/checkout@v4
23-
24- - name : Setup Node.js
25- uses : actions/setup-node@v4
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-node@v4
2615 with :
2716 node-version : ' 20'
2817 cache : ' npm'
29-
30- - name : Install dependencies
31- run : npm ci
32-
33- - name : Build
34- run : npm run build
35-
36- - name : Setup Pages
37- uses : actions/configure-pages@v4
38-
39- - name : Upload artifact
40- uses : actions/upload-pages-artifact@v3
18+ - run : npm install
19+ - run : npm run build
20+ - uses : actions/upload-pages-artifact@v3
4121 with :
4222 path : ' ./dist'
43-
4423 deploy :
45- environment :
46- name : github-pages
47- url : ${{ steps.deployment.outputs.page_url }}
4824 runs-on : ubuntu-latest
4925 needs : build
5026 steps :
51- - name : Deploy to GitHub Pages
52- id : deployment
53- uses : actions/deploy-pages@v4
27+ - id : deployment
28+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments