File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1059,6 +1059,12 @@ jobs:
1059
1059
echo "<meta http-equiv=\"Refresh\" content=\"0; url=/tsbrowse/docs/stable\" />" > site/tsbrowse/docs/index.html
1060
1060
echo "<meta http-equiv=\"Refresh\" content=\"0; url=/tsdate/docs/stable\" />" > site/tsdate/docs/index.html
1061
1061
echo "<meta http-equiv=\"Refresh\" content=\"0; url=/tszip/docs/latest\" />" > site/tszip/docs/index.html
1062
+
1063
+ - name : Inject analytics code
1064
+ run : |
1065
+ # Find all HTML files and inject analytics code before closing </head> tag
1066
+ find site -type f \( -name "*.html" -o -name "*.htm" \) -exec sed -i 's|</head>|<script data-goatcounter="https://tskit.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>\n</head>|' {} \;
1067
+
1062
1068
- name : List site contents
1063
1069
run : |
1064
1070
ls -R
You can’t perform that action at this time.
0 commit comments