Browse Source

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
pull/31022/head
Rob Winch 2 years ago
parent
commit
edc01f4957
  1. 4
      .github/workflows/deploy-docs.yml
  2. 1
      antora-playbook.yml

4
.github/workflows/deploy-docs.yml

@ -33,8 +33,10 @@ jobs: @@ -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 }}

1
antora-playbook.yml

@ -2,6 +2,7 @@ antora: @@ -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'

Loading…
Cancel
Save