From edc01f4957bb114bc660d215e9ac305a049640d3 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 9 Aug 2023 17:09:03 -0500 Subject: [PATCH] Add caching for the collector Cache the collector output for tags which speeds up builds with tags. - Add inject-collector-cache-config-extension - Update deployment to include the cache in the site - Update rsync-antora-referece to handle the cache properly --- .github/workflows/deploy-docs.yml | 4 +++- antora-playbook.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index b63522ec5d5..847a55c126b 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -33,8 +33,10 @@ jobs: echo BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:gradle.properties | sed -n '/^version=/ { s/^version=//;p }') >> $GITHUB_ENV - name: Run Antora run: ./gradlew antora + - name: Copy the cache to be included in the site + run: cp -rf build/antora/inject-collector-cache-config-extension/.cache build/site/ - name: Publish Docs - uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.8 + uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11 with: docs-username: ${{ secrets.DOCS_USERNAME }} docs-host: ${{ secrets.DOCS_HOST }} diff --git a/antora-playbook.yml b/antora-playbook.yml index b2db28f7029..756f851a929 100644 --- a/antora-playbook.yml +++ b/antora-playbook.yml @@ -2,6 +2,7 @@ antora: extensions: - '@springio/antora-extensions/partial-build-extension' - require: '@springio/antora-extensions/latest-version-extension' + - require: '@springio/antora-extensions/inject-collector-cache-config-extension' - '@antora/collector-extension' - '@antora/atlas-extension' - '@opendevise/antora-release-line-extension'