Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove src build from doc build flow (#10127)
This PR removes the src build step from the docs build flow. Successful CI Run: https://github.com/AztecProtocol/aztec-packages/actions/runs/11960317707 - I have verified that `/yarn-project/+scripts-prod` is only referenced by `/docs/Earthfile` and does not have other dependences - The actual doc build itself is covered by setting the yarn workspace + inheriting `FROM +serve` within the current workflow (see below). `FROM +serve` itself uses `COPY +build/build build`, which made a duplicate request to build src (it appears src was being built twice). ``` deploy-preview: BUILD ../yarn-project/+scripts-prod ARG ENV ARG NETLIFY_AUTH_TOKEN ARG NETLIFY_SITE_ID ARG AZTEC_BOT_COMMENTER_GITHUB_TOKEN ARG PR FROM +serve COPY --dir ../yarn-project/+scripts-prod/usr/src/yarn-project /usr/src COPY ./netlify.toml . COPY ./deploy_preview.sh . RUN NETLIFY_AUTH_TOKEN=$NETLIFY_AUTH_TOKEN NETLIFY_SITE_ID=$NETLIFY_SITE_ID ./deploy_preview.sh $PR $AZTEC_BOT_COMMENTER_GITHUB_TOKEN deploy-prod: BUILD ../yarn-project/+scripts-prod ARG NETLIFY_AUTH_TOKEN ARG NETLIFY_SITE_ID FROM +serve COPY ./netlify.toml . COPY ./deploy_prod.sh . RUN NETLIFY_AUTH_TOKEN=$NETLIFY_AUTH_TOKEN NETLIFY_SITE_ID=$NETLIFY_SITE_ID ./deploy_prod.sh ```
- Loading branch information