Skip to content

Commit d22ee32

Browse files
mojavelinuxrwinch
authored andcommitted
reconfigure branch for local builds and as scheduler for docs workflows
- set up placeholder and trigger for Deploy Docs workflow in docs-build branch - set up placeholder and trigger for Rebuild Search Index workflow in docs-build branch - remove obsolete Deploy Reference workflow - upgrade Antora to 3.1 - reconfigure docs build for local build only - add patch to support using linked worktree as Antora content source - remove Antora extensions only needed for the production docs build
1 parent 929b334 commit d22ee32

18 files changed

+151
-407
lines changed

.github/actions/algolia-config.json

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

.github/actions/algolia-deploy.sh

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

.github/actions/algolia-docsearch-scraper.sh

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

.github/workflows/algolia-index.yml

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

.github/workflows/deploy-docs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Deploy Docs
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
register:
6+
if: false
7+
steps:
8+
- run: echo Workflow registered!

.github/workflows/deploy-reference.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Rebuild Search Index
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
register:
6+
if: false
7+
steps:
8+
- run: echo Workflow registered!
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Trigger Deploy Docs
2+
on:
3+
repository_dispatch:
4+
types: request-build-reference # legacy
5+
schedule:
6+
- cron: '0 10 * * *' # Once per day at 10am UTC
7+
workflow_dispatch:
8+
permissions: read-all
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
if: github.repository_owner == 'spring-projects'
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
ref: docs-build
18+
fetch-depth: 1
19+
- name: Dispatch
20+
run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) deploy-docs.yml
21+
env:
22+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Trigger Rebuild Search Index
2+
on:
3+
schedule:
4+
- cron: '0 10 * * *' # Once per day at 10am UTC
5+
workflow_dispatch:
6+
permissions: read-all
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
if: github.repository_owner == 'spring-projects'
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
ref: docs-build
16+
fetch-depth: 1
17+
- name: Dispatch
18+
run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) rebuild-search-index.yml
19+
env:
20+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/package-lock.json
2+
/node_modules/

0 commit comments

Comments
 (0)