Skip to content

Commit 830aada

Browse files
committed
Initial docs-build configuration
1 parent 51b75dc commit 830aada

File tree

87 files changed

+529
-14358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+529
-14358
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/ISSUE_TEMPLATE/config.yml

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

.github/ISSUE_TEMPLATE/feature_request.md

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

.github/ISSUE_TEMPLATE/miscellaneous.md

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

.github/workflows/artifactory-milestone-release.yml

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

.github/workflows/artifactory-staging.yml

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

.github/workflows/continuous-integration.yml

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

.github/workflows/deploy-docs.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy Docs
2+
run-name: ${{ format('{0} ({1})', github.workflow, github.event.inputs.build-refname || 'all') }}
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
build-refname:
7+
description: Enter git refname to build (e.g., main).
8+
required: false
9+
push:
10+
branches: docs-build
11+
# env:
12+
# GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
13+
permissions:
14+
contents: write
15+
jobs:
16+
build:
17+
if: github.repository_owner == 'spring-projects'
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 5
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v3
26+
with:
27+
java-version: '17'
28+
distribution: 'temurin'
29+
# - name: Set up refname build
30+
# if: github.event.inputs.build-refname
31+
# run: |
32+
# git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY ${{ github.event.inputs.build-refname }}
33+
# export BUILD_REFNAME=${{ github.event.inputs.build-refname }}
34+
# echo "BUILD_REFNAME=$BUILD_REFNAME" >> $GITHUB_ENV
35+
# export BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:pom.xml | python3 -c "import xml.etree.ElementTree as xml; from sys import stdin; print(xml.parse(stdin).getroot().find('{http://maven.apache.org/POM/4.0.0}version').text)")
36+
# echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
37+
- name: Run Antora
38+
run: |
39+
./mvnw antora
40+
- name: Publish Docs
41+
uses: spring-io/spring-doc-actions/[email protected]
42+
with:
43+
docs-username: ${{ secrets.DOCS_USERNAME }}
44+
docs-host: ${{ secrets.DOCS_HOST }}
45+
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
46+
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
47+
site-path: target/antora/site
48+
- name: Bust Cloudflare Cache
49+
uses: spring-io/spring-doc-actions/[email protected]
50+
with:
51+
context-root: spring-ai-mcp
52+
cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
53+
cloudflare-cache-token: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}

.github/workflows/maven-central-release.yml

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

0 commit comments

Comments
 (0)