@@ -14,7 +14,7 @@ permissions:
1414 contents : write
1515jobs :
1616 build :
17- # if: github.repository_owner == 'spring-projects'
17+ if : github.repository_owner == 'spring-projects'
1818 runs-on : ubuntu-latest
1919 steps :
2020 - name : Checkout
@@ -34,22 +34,18 @@ jobs:
3434 echo BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:gradle.properties | sed -n '/^version=/ { s/^version=//;p }') >> $GITHUB_ENV
3535 - name : Run Antora
3636 run : ./gradlew antora
37+ - name : Copy the cache to be included in the site
38+ run : cp -rf build/antora/inject-collector-cache-config-extension/.cache build/site/
3739 - name : Publish Docs
38- uses : JamesIves/github-pages-deploy-action@v4
40+ uses : spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11
3941 with :
40- folder : build/site # The folder the action should deploy.
41- # - name: Copy the cache to be included in the site
42- # run: cp -rf build/antora/inject-collector-cache-config-extension/.cache build/site/
43- # - name: Publish Docs
44- # uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11
45- # with:
46- # docs-username: ${{ secrets.DOCS_USERNAME }}
47- # docs-host: ${{ secrets.DOCS_HOST }}
48- # docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
49- # docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
50- # - name: Bust Clouflare Cache
51- # uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11
52- # with:
53- # context-root: spring-security
54- # cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
55- # cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
42+ docs-username : ${{ secrets.DOCS_USERNAME }}
43+ docs-host : ${{ secrets.DOCS_HOST }}
44+ docs-ssh-key : ${{ secrets.DOCS_SSH_KEY }}
45+ docs-ssh-host-key : ${{ secrets.DOCS_SSH_HOST_KEY }}
46+ - name : Bust Clouflare Cache
47+ uses : spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11
48+ with :
49+ context-root : spring-authorization-server
50+ cloudflare-zone-id : ${{ secrets.CLOUDFLARE_ZONE_ID }}
51+ cloudflare-cache-token : ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
0 commit comments