Skip to content

Commit 5545ee6

Browse files
authoredDec 21, 2023
fix(docs): Force docs build using latest released code always (AztecProtocol#3762)
Having two different docs builds, one with released code and one without, doesn't fly with build-system, since it checks the content hash of the content to determine whether to rebuild based on committed data only. This means that the hack introduced [here](AztecProtocol#3716) does not work. So we'll just build as if we were in master on every run, for now.
1 parent f3d93aa commit 5545ee6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed
 

‎.circleci/config.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -853,15 +853,13 @@ jobs:
853853
name: "Copy docs dockerignore"
854854
command: cp docs/.dockerignore .
855855
- run:
856-
name: "Configure build for master"
856+
name: "Require released code"
857857
command: |
858-
if [ "$CIRCLE_BRANCH" == "master" ]; then
859-
echo Configuring build for master
860-
echo "INCLUDE_RELEASED_CODE=1" >> docs/.env
861-
LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)"
862-
echo Fetching latest released tag $LAST_TAG
863-
git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG
864-
fi
858+
echo Requiring released code snippets
859+
echo "INCLUDE_RELEASED_CODE=1" >> docs/.env
860+
LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)"
861+
echo Fetching latest released tag $LAST_TAG
862+
git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG
865863
- run:
866864
name: "Build docs"
867865
command: build docs

0 commit comments

Comments
 (0)