From cd50615bbee61ac4f2dd273f217ce664b618c80b Mon Sep 17 00:00:00 2001 From: Sebastian Urchs Date: Thu, 19 Dec 2024 12:08:09 -0500 Subject: [PATCH] [FIX] Fix deploy workflow (#412) * [FIX] Fix deploy workflow Appzi and plausible script were not correctly inserted * [FIX] error fixes - correct WF invocation of sed - remove dangling appzi scripts in index.html --- .github/workflows/deploy.yaml | 8 +++----- index.html | 11 ----------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 95f3b03d..9e27547e 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -31,11 +31,9 @@ jobs: # TODO: Make this cleaner by for example using a custom hook and adding to document - name: Add prod scripts run: | - add_script=' - - - ' - sed -i "s||${add_script}|" index.html + add_script='' + # Need to use single quotes around sed to avoid ! to be interpreted as a history expansion character + sed -i 's||'"${add_script}"'|' index.html - name: Set up Node uses: actions/setup-node@v4 diff --git a/index.html b/index.html index 7719fe7a..f9e0cb18 100644 --- a/index.html +++ b/index.html @@ -12,14 +12,3 @@ - - - - - - -