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 {} \;