From d92e3279bb5180af7d51af01cc33dbb75fdcfd98 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 31 May 2021 16:21:49 +0530 Subject: [PATCH] Try manual fix of path --- .github/workflows/deploy.yml | 1 + bin/fix-path | 3 +++ 2 files changed, 4 insertions(+) create mode 100755 bin/fix-path diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4778fbcf..87a017ce 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,6 +32,7 @@ jobs: # yarn run lint version=$(yarn version --patch --no-git-tag-version | grep "New version" | cut -d':' -f 2) yarn build + ./bin/fix-path git config user.name github-actions git config user.email github-actions@github.com git add . diff --git a/bin/fix-path b/bin/fix-path new file mode 100755 index 00000000..06cee503 --- /dev/null +++ b/bin/fix-path @@ -0,0 +1,3 @@ +#!/bin/bash +find ../docs -type f -exec sed -i '' 's/service-worker.js/mermaid-live-editor\/service-worker.js/g' *.js {} \; +find ../docs -type f -exec sed -i '' 's/manifest.json/mermaid-live-editor\/manifest.json/g' *.html {} \;