File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed
Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Guide to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' guide/**'
9+ - ' .github/workflows/deploy-guide.yml'
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ concurrency :
18+ group : pages
19+ cancel-in-progress : false
20+
21+ jobs :
22+ build :
23+ runs-on : ubuntu-latest
24+ container : node
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+
29+ - name : Install dependencies
30+ working-directory : guide
31+ run : npm ci
32+
33+ - name : Build guide
34+ working-directory : guide
35+ run : npm run build
36+
37+ - name : Setup Pages
38+ uses : actions/configure-pages@v4
39+
40+ - name : Upload artifact
41+ uses : actions/upload-pages-artifact@v3
42+ with :
43+ path : guide/_book
44+
45+ deploy :
46+ environment :
47+ name : github-pages
48+ url : ${{ steps.deployment.outputs.page_url }}
49+ runs-on : ubuntu-latest
50+ needs : build
51+ steps :
52+ - name : Deploy to GitHub Pages
53+ id : deployment
54+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11*.js
22*.json
3+ !book.json
34*.mjs
45*.cjs
Original file line number Diff line number Diff line change 2020 * [ Migrating context-local variables] ( 05-cjs-esm-migration/migrating-context-local-variables/README.md )
2121 * [ Migrating package.json] ( 05-cjs-esm-migration/migrating-package-json/README.md )
2222
23+ <!--
2324### Packages with a build step
2425
2526* [Bundling](06-bundling/README.md)
3839
3940* [Q&A](q-n-a/README.md)
4041* [Troubleshooting](troubleshooting/README.md)
42+ * -->
You can’t perform that action at this time.
0 commit comments