From 8bdfe76883614df531669ab22214577fc3c6ef3f Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 9 Oct 2023 10:02:28 +0200 Subject: [PATCH] Fixes staging-docs (#4070) * Fixes staging-docs - var interpolation wasn't working with single quotes - also introduce change to skip versioning on PRs which makes the build much faster * Don't disable versioning on PRs --- .github/workflows/docs.yaml | 18 ++++++++++++------ website/docusaurus.config.js | 1 + 2 files changed, 13 insertions(+), 6 deletions(-) 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 <