55 branches :
66 - main
77 paths :
8- - " docs/user-docs/ **"
8+ - " docs/**"
99
1010env :
1111 PROJECT_ID : " benefit-decision-toolkit-play"
@@ -23,38 +23,26 @@ jobs:
2323 - name : Checkout repository
2424 uses : actions/checkout@v4
2525
26- # -------------------------
27- # Install Python & MKDocs
28- # -------------------------
29- - name : Set up Python
30- uses : actions/setup-python@v4
26+ - name : Set up Node.js
27+ uses : actions/setup-node@v4
3128 with :
32- python -version : " 3.x "
29+ node -version : " 20 " # Adjust version as needed
3330
34- - name : Cache Python dependencies
31+ - name : Cache Node.js dependencies
3532 uses : actions/cache@v4
3633 with :
37- path : ~/.cache/pip
38- key : ${{ runner.os }}-pip -${{ hashFiles('docs/user-docs/requirements.txt ') }}
34+ path : ~/.npm
35+ key : ${{ runner.os }}-npm -${{ hashFiles('docs/package-lock.json ') }}
3936 restore-keys : |
40- ${{ runner.os }}-pip-
41-
42- - name : Install Python dependencies
43- run : |
44- python -m pip install --upgrade pip
45- pip install -r docs/user-docs/requirements.txt
37+ ${{ runner.os }}-npm-
4638
47- - name : Build MKDocs site
48- working-directory : docs/user-docs
49- run : mkdocs build
39+ - name : Install dependencies
40+ working-directory : docs
41+ run : npm install
5042
51- # -------------------------
52- # Install Node & Firebase CLI
53- # -------------------------
54- - name : Set up Node
55- uses : actions/setup-node@v3
56- with :
57- node-version : " 18"
43+ - name : Build Astro site
44+ working-directory : docs
45+ run : npm run build
5846
5947 - name : Install Firebase CLI
6048 run : npm install -g firebase-tools
0 commit comments