diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 45927807..698dfc70 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -14,7 +14,7 @@ permissions: contents: write jobs: build: -# if: github.repository_owner == 'spring-projects' + if: github.repository_owner == 'spring-projects' runs-on: ubuntu-latest steps: - name: Checkout @@ -34,22 +34,18 @@ 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: JamesIves/github-pages-deploy-action@v4 + uses: spring-io/spring-doc-actions/rsync-antora-reference@v0.0.11 with: - folder: build/site # The folder the action should deploy. -# - 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.11 -# with: -# docs-username: ${{ secrets.DOCS_USERNAME }} -# docs-host: ${{ secrets.DOCS_HOST }} -# docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }} -# docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }} -# - name: Bust Clouflare Cache -# uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11 -# with: -# context-root: spring-security -# cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }} -# cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }} + docs-username: ${{ secrets.DOCS_USERNAME }} + docs-host: ${{ secrets.DOCS_HOST }} + docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }} + docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }} + - name: Bust Clouflare Cache + uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11 + with: + context-root: spring-authorization-server + cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }} + cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}