diff --git a/.circleci/config.yml b/.circleci/config.yml index 31bb8ce214c..cd95a730443 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -856,8 +856,11 @@ jobs: name: "Configure build for master" command: | if [ "$CIRCLE_BRANCH" == "master" ]; then - echo "Configuring build for master" + echo Configuring build for master echo "INCLUDE_RELEASED_CODE=1" >> docs/.env + LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)" + echo Fetching latest released tag $LAST_TAG + git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG fi - run: name: "Build docs" diff --git a/docs/Dockerfile.dockerignore b/docs/Dockerfile.dockerignore index 68acaf472fa..ab13fbd2925 100644 --- a/docs/Dockerfile.dockerignore +++ b/docs/Dockerfile.dockerignore @@ -9,4 +9,7 @@ docs/node_modules !barretenberg/cpp/src/barretenberg !circuits/cpp/src !.release-please-manifest.json -!boxes \ No newline at end of file +!boxes + +# Docs build fetches code snippets from the last release using git show. +!.git \ No newline at end of file