Skip to content

Commit c9e91ad

Browse files
committed
streamline configuration
1 parent a026dbf commit c9e91ad

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,28 @@ jobs:
2626
with:
2727
java-version: '17'
2828
distribution: 'temurin'
29-
- name: Set up refname build
30-
if: github.event.inputs.build-refname
31-
run: |
32-
git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY ${{ github.event.inputs.build-refname }}
33-
export BUILD_REFNAME=${{ github.event.inputs.build-refname }}
34-
echo "BUILD_REFNAME=$BUILD_REFNAME" >> $GITHUB_ENV
35-
export BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:pom.xml | python3 -c "import xml.etree.ElementTree as xml; from sys import stdin; print(xml.parse(stdin).getroot().find('{http://maven.apache.org/POM/4.0.0}version').text)")
36-
echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
29+
# - name: Set up refname build
30+
# if: github.event.inputs.build-refname
31+
# run: |
32+
# git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY ${{ github.event.inputs.build-refname }}
33+
# export BUILD_REFNAME=${{ github.event.inputs.build-refname }}
34+
# echo "BUILD_REFNAME=$BUILD_REFNAME" >> $GITHUB_ENV
35+
# export BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:pom.xml | python3 -c "import xml.etree.ElementTree as xml; from sys import stdin; print(xml.parse(stdin).getroot().find('{http://maven.apache.org/POM/4.0.0}version').text)")
36+
# echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
3737
- name: Run Antora
3838
run: |
3939
./mvnw antora
4040
- name: Publish Docs
41-
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11
41+
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.18
4242
with:
4343
docs-username: ${{ secrets.DOCS_USERNAME }}
4444
docs-host: ${{ secrets.DOCS_HOST }}
4545
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
4646
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
4747
site-path: target/antora/site
4848
# - name: Bust Cloudflare Cache
49-
# uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11
49+
# uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.18
5050
# with:
5151
# context-root: spring-ai
5252
# cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
53-
# cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
53+
# cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}

antora-playbook.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
antora:
22
extensions:
3-
- '@antora/collector-extension'
4-
- '@antora/atlas-extension'
5-
- '@springio/antora-extensions/set-algolia-env-extension'
6-
- '@springio/antora-extensions/partial-build-extension'
7-
- require: '@springio/antora-extensions/latest-version-extension'
8-
- require: '@springio/antora-extensions/inject-collector-cache-config-extension'
9-
- require: '@springio/antora-extensions/root-component-extension'
3+
- require: '@springio/antora-extensions'
104
root_component_name: 'ai'
115
site:
126
title: Spring AI Reference

0 commit comments

Comments
 (0)