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 : Build Docusaurus Site (Manual)
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ target :
7+ description : " Build target (affects baseUrl config)"
8+ required : true
9+ default : " dreamhost"
10+ type : choice
11+ options :
12+ - dreamhost
13+ - gh
14+
15+ permissions :
16+ contents : read
17+
18+ jobs :
19+ build :
20+ name : Build site
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : Checkout repo
24+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
25+
26+ - name : Setup Node
27+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
28+ with :
29+ node-version : 20
30+ cache : npm
31+ cache-dependency-path : website/package-lock.json
32+
33+ - name : Install dependencies
34+ run : |
35+ cd website
36+ npm ci
37+
38+ - name : Build Docusaurus site
39+ env :
40+ DEPLOY_TARGET : ${{ inputs.target }}
41+ run : |
42+ cd website
43+ npm run build
44+
45+ - name : Upload build artifact
46+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
47+ with :
48+ name : docusaurus-build
49+ path : website/build
50+ # JMH -- TBD:
51+ # retention-days: 7
You can’t perform that action at this time.
0 commit comments