Skip to content

Commit

Permalink
[FIX] error fixes
Browse files Browse the repository at this point in the history
- correct WF invocation of sed
- remove dangling appzi scripts in index.html
  • Loading branch information
surchs committed Dec 19, 2024
1 parent 373b36d commit 8eef317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
- name: Add prod scripts
run: |
add_script='<script async src="https://w.appzi.io/w.js?token=YVTHd"></script><script defer data-domain="query.neurobagel.org" src="https://plausible.neurobagel.org/js/script.js"></script>'
sed -i "s|<!-- Additional script tags -->|${add_script}|" index.html
# Need to use single quotes around sed to avoid ! to be interpreted as a history expansion character
sed -i 's|<!-- Additional script tags -->|'"${add_script}"'|' index.html
- name: Set up Node
uses: actions/setup-node@v4
Expand Down
11 changes: 0 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,3 @@
<!-- Additional script tags -->
</body>
</html>

<!-- Appzi-->
<script async src="https://w.appzi.io/w.js?token=YVTHd"></script>
<!-- End Appzi -->
<!-- Begin Plausibe -->
<script
defer
data-domain="query.neurobagel.org"
src="https://plausible.neurobagel.org/js/script.js"
></script>
<!-- End Plausibe -->

0 comments on commit 8eef317

Please sign in to comment.