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