Browse Source

Setup sync for spring.io

pull/1291/head
Rob Winch 3 years ago
parent
commit
f0ddf43cf6
  1. 32
      .github/workflows/deploy-docs.yml

32
.github/workflows/deploy-docs.yml

@ -14,7 +14,7 @@ permissions: @@ -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: @@ -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 }}

Loading…
Cancel
Save