From ac5e484d4e00bd035e8ff3213c895791178b7c04 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 10 Aug 2023 13:14:03 +0100 Subject: [PATCH] Chore: Fix CI --- .github/scripts/run_ci.sh | 2 +- packages/tools/website/build.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/run_ci.sh b/.github/scripts/run_ci.sh index 953f2d78c..58c3e12a7 100755 --- a/.github/scripts/run_ci.sh +++ b/.github/scripts/run_ci.sh @@ -179,7 +179,7 @@ if [ "$IS_PULL_REQUEST" == "1" ] || [ "$IS_DEV_BRANCH" = "1" ]; then echo "Step: Check that the website still builds..." mkdir -p ../joplin-website/docs - yarn run buildWebsite + SKIP_SPONSOR_PROCESSING=1 yarn run buildWebsite testResult=$? if [ $testResult -ne 0 ]; then exit $testResult diff --git a/packages/tools/website/build.ts b/packages/tools/website/build.ts index f3153879f..d0c2b07cd 100644 --- a/packages/tools/website/build.ts +++ b/packages/tools/website/build.ts @@ -257,7 +257,7 @@ async function main() { await remove(`${docDir}`); await copy(websiteAssetDir, `${docDir}`); - const sponsors = await loadSponsors(); + const sponsors = process.env.SKIP_SPONSOR_PROCESSING ? { github: [], orgs: [] } : await loadSponsors(); const partials = await loadMustachePartials(partialDir); const assetUrls = await getAssetUrls();