From b152732d7ff6ae0676ee5c4c564815aa30adc134 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 11 Mar 2024 10:06:55 +0000 Subject: [PATCH] Tools: Build doc on CI (#10100) --- .github/scripts/run_ci.sh | 16 +++++++++------- .github/workflows/github-actions-main.yml | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/scripts/run_ci.sh b/.github/scripts/run_ci.sh index e4bb382fa..5441a213b 100755 --- a/.github/scripts/run_ci.sh +++ b/.github/scripts/run_ci.sh @@ -202,14 +202,16 @@ fi # ============================================================================= if [ "$RUN_TESTS" == "1" ]; then - echo "Step: Check that the website still builds..." + if [ "$IS_LINUX" == "1" ]; then + echo "Step: Check that the website still builds..." - mkdir -p ../joplin-website/docs - ll ../joplin-website/docs/api/references/plugin_api - SKIP_SPONSOR_PROCESSING=1 yarn buildWebsite - testResult=$? - if [ $testResult -ne 0 ]; then - exit $testResult + mkdir -p ../joplin-website/docs + CROWDIN_PERSONAL_TOKEN="$CROWDIN_PERSONAL_TOKEN" yarn crowdinDownload + SKIP_SPONSOR_PROCESSING=1 yarn buildWebsite + testResult=$? + if [ $testResult -ne 0 ]; then + exit $testResult + fi fi fi diff --git a/.github/workflows/github-actions-main.yml b/.github/workflows/github-actions-main.yml index a35d76511..6d995530c 100644 --- a/.github/workflows/github-actions-main.yml +++ b/.github/workflows/github-actions-main.yml @@ -127,6 +127,7 @@ jobs: BUILD_SEQUENCIAL: 1 SERVER_REPOSITORY: joplin/server SERVER_TAG_PREFIX: server + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} run: | "${GITHUB_WORKSPACE}/.github/scripts/run_ci.sh"