Skip to content

Commit fe252f5

Browse files
committed
sync docs build; upgrade Antora and Antora Collector to latest alpha
1 parent d5aabd7 commit fe252f5

File tree

6 files changed

+33
-102
lines changed

6 files changed

+33
-102
lines changed

.github/actions/dispatch.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/antora-generate.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/deploy-docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Docs
2+
on:
3+
push:
4+
branches-ignore: [ gh-pages ]
5+
tags: '**'
6+
repository_dispatch:
7+
types: request-build-reference # legacy
8+
schedule:
9+
- cron: '0 10 * * *' # Once per day at 10am UTC
10+
workflow_dispatch:
11+
permissions: read-all
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
if: github.repository_owner == 'spring-projects'
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
ref: docs-build
21+
fetch-depth: 1
22+
- name: Dispatch (partial build)
23+
if: github.ref_type == 'branch'
24+
env:
25+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
26+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
27+
- name: Dispatch (full build)
28+
if: github.ref_type == 'tag'
29+
env:
30+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
31+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)

docs/antora-linked-worktree-patch.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

docs/local-antora-playbook.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# The purpose of this Antora playbook is to generate a preview of the docs in the current branch.
22
antora:
33
extensions:
4-
- ./antora-linked-worktree-patch.js
54
- '@antora/collector-extension'
65
site:
76
title: Spring Security

docs/spring-security-docs.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apply plugin: 'io.spring.convention.docs'
66
apply plugin: 'java'
77

88
antora {
9-
version = '~3.1'
9+
version = '3.2.0-alpha.2'
1010
playbook = file('local-antora-playbook.yml')
1111
options = ['--clean', '--stacktrace']
1212
environment = [
@@ -15,7 +15,7 @@ antora {
1515
'ALGOLIA_INDEX_NAME': 'security-docs'
1616
]
1717
dependencies = [
18-
'@antora/collector-extension': '1.0.0-alpha.2'
18+
'@antora/collector-extension': '1.0.0-alpha.3'
1919
]
2020
}
2121

0 commit comments

Comments
 (0)