12
.github/workflows/antora-site.yml
vendored
12
.github/workflows/antora-site.yml
vendored
@@ -17,16 +17,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 5
|
fetch-depth: 5
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Setup Maven Action
|
- name: Setup Maven Action
|
||||||
uses: s4u/setup-maven-action@v1.8.0
|
uses: s4u/setup-maven-action@v1.13.0
|
||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Set up refname build
|
- name: Set up refname build
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
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)")
|
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)")
|
||||||
echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
|
echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
|
||||||
- name: Cache nodejs
|
- name: Cache nodejs
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
node
|
node
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
# path: target/antora/site
|
# path: target/antora/site
|
||||||
# retention-days: 5
|
# retention-days: 5
|
||||||
- name: Publish Docs
|
- name: Publish Docs
|
||||||
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.12
|
uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.17
|
||||||
with:
|
with:
|
||||||
docs-username: ${{ secrets.DOCS_USERNAME }}
|
docs-username: ${{ secrets.DOCS_USERNAME }}
|
||||||
docs-host: ${{ secrets.DOCS_HOST }}
|
docs-host: ${{ secrets.DOCS_HOST }}
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
site-path: target/antora/site
|
site-path: target/antora/site
|
||||||
httpdocs-path: /spring-data/${{ github.event.inputs.module }}/reference
|
httpdocs-path: /spring-data/${{ github.event.inputs.module }}/reference
|
||||||
- name: Bust Cloudflare Cache
|
- name: Bust Cloudflare Cache
|
||||||
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.12
|
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.17
|
||||||
with:
|
with:
|
||||||
context-root: spring-data/${{ github.event.inputs.module }}/reference
|
context-root: spring-data/${{ github.event.inputs.module }}/reference
|
||||||
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
||||||
|
|||||||
Reference in New Issue
Block a user