File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 30
30
uv sync --all-extras --dev
31
31
32
32
- name : Build the book
33
+ env :
34
+ GA4_TRACKING_ID : ${{ secrets.GA4_TRACKING_ID }}
33
35
run : |
36
+ # Replace GA4_TRACKING_ID placeholder with actual value from secrets
37
+ # Using | as delimiter to avoid issues with / in the GA4 ID
38
+ sed -i "s|GA4_TRACKING_ID|${GA4_TRACKING_ID}|g" docs/${{ matrix.lang }}/_config.yml
39
+
40
+ # Build the book
34
41
uv run jupyter-book build docs/${{ matrix.lang }}
35
42
ERROR_LOGS=$(find docs/${{ matrix.lang }}/_build -type f -name "*.err.log")
36
43
if [ -n "$ERROR_LOGS" ]; then while IFS= read -r log; do echo "[ERROR LOG] $log" && cat "$log"; done <<< "$ERROR_LOGS" && exit 1; fi
Original file line number Diff line number Diff line change 32
32
favicon : " ./logo.png"
33
33
use_issues_button : true
34
34
use_repository_button : true
35
+ analytics :
36
+ google_analytics_id : GA4_TRACKING_ID
35
37
36
38
launch_buttons :
37
39
notebook_interface : " classic"
Original file line number Diff line number Diff line change 32
32
favicon : " ./logo.png"
33
33
use_issues_button : true
34
34
use_repository_button : true
35
+ analytics :
36
+ google_analytics_id : GA4_TRACKING_ID
35
37
36
38
launch_buttons :
37
39
notebook_interface : " classic"
You can’t perform that action at this time.
0 commit comments