File tree Expand file tree Collapse file tree 4 files changed +46
-3
lines changed Expand file tree Collapse file tree 4 files changed +46
-3
lines changed Original file line number Diff line number Diff line change 1- ---
21name : Nuxt [Validate]
32env :
43 node_version : 20
Original file line number Diff line number Diff line change 1+ name : Nuxt [Docs]
2+ env :
3+ node_version : 20
4+ concurrency :
5+ group : " pages"
6+ cancel-in-progress : false
7+ on :
8+ push :
9+ branches : ["main"]
10+ workflow_dispatch :
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ with :
19+ working_directory : ./docs
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : ${{ env.node_version }}
27+ - name : Enable corepack
28+ run : corepack enable
29+ - name : Install dependencies
30+ run : npx nypm@latest i
31+ - name : Generate documentation
32+ run : pnpm generate
33+ - name : Upload artifact
34+ uses : actions/upload-pages-artifact@v3
35+ with :
36+ path : .output/public
37+ deploy :
38+ environment :
39+ name : github-pages
40+ url : ${{ steps.deployment.outputs.page_url }}
41+ runs-on : ubuntu-latest
42+ needs : build
43+ steps :
44+ - name : Deploy to GitHub Pages
45+ id : deployment
46+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1- ---
21name : Nuxt [Pre-Release]
32env :
43 node_version : 20
Original file line number Diff line number Diff line change 1- ---
21name : Nuxt [Release]
32env :
43 node_version : 20
You can’t perform that action at this time.
0 commit comments