From b59eb30b0f6795c6a06950e74a1c1f1c13b4741f Mon Sep 17 00:00:00 2001 From: Bill Wallace Date: Fri, 19 Jun 2026 12:34:07 -0400 Subject: [PATCH] fix: Release deploy of docs (#6095) A netlify fix that needs to be verified on master --- .github/workflows/build-docs.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 97e82cd17..c40721168 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -112,9 +112,13 @@ jobs: run: pnpm --filter ohif-docs run build - name: Deploy to Netlify - run: | - cd platform/docs - npx netlify-cli deploy --dir=./build --prod + # The docs are already built by the "Build docs" step above, so pass + # --no-build: `netlify deploy` runs the build command by default, which + # would otherwise pick up the repo-root netlify.toml (configured for the + # main viewer app) and build the wrong project. --dir is resolved + # relative to the repo root (the netlify.toml base), not the cwd, so it + # must be the full path to the prebuilt docs output. + run: npx netlify-cli deploy --dir=platform/docs/build --prod --no-build env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}