File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy documentation staging
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths : ['.github/workflows/deploy-pages.yml']
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+
12+ concurrency :
13+ group : github-pages
14+ cancel-in-progress : false
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ timeout-minutes : 30
20+ steps :
21+ - name : Check out the documentation branch
22+ uses : actions/checkout@v4
23+ with :
24+ repository : codeboltai/codeboltdocs
25+ ref : restructure
26+ persist-credentials : false
27+
28+ - name : Configure GitHub Pages
29+ id : pages
30+ uses : actions/configure-pages@v5
31+
32+ - name : Set up Node.js
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : ' 22'
36+ cache : npm
37+
38+ - name : Install dependencies
39+ run : npm ci
40+
41+ - name : Build the staging site
42+ run : npm exec -- docusaurus build
43+ env :
44+ NODE_OPTIONS : --max-old-space-size=8192
45+ CODEBOLT_DOCS_SITE_URL : ${{ steps.pages.outputs.origin }}
46+ CODEBOLT_DOCS_BASE_PATH : ${{ steps.pages.outputs.base_path }}
47+
48+ - name : Upload the site
49+ uses : actions/upload-pages-artifact@v3
50+ with :
51+ path : build
52+
53+ deploy :
54+ runs-on : ubuntu-latest
55+ needs : build
56+ permissions :
57+ pages : write
58+ id-token : write
59+ environment :
60+ name : github-pages
61+ url : ${{ steps.deployment.outputs.page_url }}
62+ steps :
63+ - name : Publish to staging
64+ id : deployment
65+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments