File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed
Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Docs to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths :
7+ - ' docs/**'
8+ - ' .github/workflows/deploy-docs.yml'
9+ workflow_dispatch :
10+
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ concurrency :
17+ group : ' pages'
18+ cancel-in-progress : true
19+
20+ jobs :
21+ build :
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v4
26+
27+ - name : Setup Bun
28+ uses : oven-sh/setup-bun@v2
29+ with :
30+ bun-version : latest
31+
32+ - name : Setup Pages
33+ uses : actions/configure-pages@v5
34+
35+ - name : Install dependencies
36+ working-directory : docs
37+ run : bun install --frozen-lockfile
38+
39+ - name : Build docs
40+ working-directory : docs
41+ run : bun run build
42+
43+ - name : Upload artifact
44+ uses : actions/upload-pages-artifact@v3
45+ with :
46+ path : docs/out
47+
48+ deploy :
49+ environment :
50+ name : github-pages
51+ url : ${{ steps.deployment.outputs.page_url }}
52+ runs-on : ubuntu-latest
53+ needs : build
54+ steps :
55+ - name : Deploy to GitHub Pages
56+ id : deployment
57+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const withMDX = createMDX();
55/** @type {import('next').NextConfig } */
66const config = {
77 reactStrictMode : true ,
8+ output : 'export' ,
89} ;
910
1011export default withMDX ( config ) ;
You can’t perform that action at this time.
0 commit comments