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 }}