diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 8f9248a46a..a77fdd32e3 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -45,7 +45,7 @@ jobs: npm i fi sed -i 's#url:.*$#url: "https://staging.docs.gitops.weave.works",#' docusaurus.config.js - sed -i 's#baseUrl:.*$#baseUrl: "/$GITHUB_HEAD_REF/",#' docusaurus.config.js + sed -i "s#baseUrl:.*\$#baseUrl: \"/$GITHUB_HEAD_REF/\",#" docusaurus.config.js yarn clear npm run build - id: auth @@ -64,15 +64,21 @@ jobs: env: GITHUB_HEAD_REF: ${{ github.head_ref }} run: | + # Pull this out to a heredoc so we can easily interpolate variables + PAYLOAD=$(cat <