[CI] Inline Antora deploy docs in CI workflow
This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -87,7 +87,7 @@ jobs:
|
||||
- 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/
|
||||
run: cp -rf ./spring-pulsar-docs/src/main/antora/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:
|
||||
@@ -98,21 +98,9 @@ jobs:
|
||||
- name: Bust Clouflare Cache
|
||||
uses: spring-io/spring-doc-actions/bust-cloudflare-antora-cache@v0.0.11
|
||||
with:
|
||||
context-root: spring-security
|
||||
context-root: spring-pulsar
|
||||
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
||||
cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
|
||||
#
|
||||
# - name: Dispatch (partial build)
|
||||
# if: github.ref_type == 'branch'
|
||||
# env:
|
||||
# GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||
# run: gh workflow run watch deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
|
||||
# - name: Dispatch (full build)
|
||||
# if: github.ref_type == 'tag'
|
||||
# env:
|
||||
# GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
||||
# run: gh workflow run watch deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
|
||||
log_complete:
|
||||
name: Log Complete
|
||||
|
||||
@@ -6,6 +6,11 @@ antora {
|
||||
version = '3.2.0-alpha.2'
|
||||
playbook = file('src/main/antora/antora-playbook.yml')
|
||||
options = ['to-dir' : project.layout.buildDirectory.dir('site').get().toString(), clean: true, fetch: !project.gradle.startParameter.offline, stacktrace: true]
|
||||
environment = [
|
||||
'ALGOLIA_API_KEY': '9d489079e5ec46dbb238909fee5c9c29',
|
||||
'ALGOLIA_APP_ID': 'WB1FQYI187',
|
||||
'ALGOLIA_INDEX_NAME': 'springdocs',
|
||||
]
|
||||
dependencies = [
|
||||
'@antora/atlas-extension': '1.0.0-alpha.1',
|
||||
'@antora/collector-extension': '1.0.0-alpha.3',
|
||||
|
||||
Reference in New Issue
Block a user