Skip to content

Commit acb8df0

Browse files
edburnsCopilot
andauthored
Add documentation site generation for Java SDK (#1524)
* Add Maven Site infrastructure and cross-repo site deployment for Java SDK Port src/site/ from the standalone repo (copilot-sdk-java) to the monorepo's java/ directory. Add maven-resources-plugin executions for site filtering, maven-site-plugin configuration with doxia-module-markdown, and a full <reporting> section (javadoc, JaCoCo, surefire, SpotBugs, taglist, dependency analysis). Add a deploy-site job to java-publish-maven.yml that triggers the standalone repo's deploy-site.yml workflow after a release, passing version and monorepo tag information. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Remove site content and plugins from monorepo — moved to standalone repo Site content (src/site/) and reporting plugins now live in github/copilot-sdk-java where the gh-pages deployment runs. The monorepo only triggers the standalone's deploy-site workflow and provides the Java source at the release tag. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Replace inline deploy-site job with temporary test workflow - Remove deploy-site job from java-publish-maven.yml (will be re-added after validation) - Add PR-1524-test-java-publish-maven.yml with hardcoded tag java/v1.0.0-beta-10-java.5 for testing the cross-repo trigger Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2afd529 commit acb8df0

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Temporary test workflow for PR #1524 — triggers site deployment on standalone repo.
2+
# Will be merged into java-publish-maven.yml once validated.
3+
name: "PR-1524: Test Site Deployment Trigger"
4+
5+
on:
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy-site:
10+
name: Deploy Documentation Site (Test)
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Trigger site deployment on standalone repo
14+
run: |
15+
VERSION="1.0.0-beta-10-java.5"
16+
TAG="java/v${VERSION}"
17+
echo "Triggering site deployment for version ${VERSION} (tag: ${TAG})"
18+
gh workflow run deploy-site.yml \
19+
--repo github/copilot-sdk-java \
20+
-f version="${VERSION}" \
21+
-f publish_as_latest=true \
22+
-f monorepo_tag="${TAG}"
23+
echo "### Site Deployment" >> $GITHUB_STEP_SUMMARY
24+
echo "Triggered deploy-site.yml on github/copilot-sdk-java for version ${VERSION}" >> $GITHUB_STEP_SUMMARY
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.JAVA_SITE_DEPLOY_TOKEN }}

.github/workflows/java-publish-maven.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,4 @@ jobs:
287287
run: gh workflow run release-changelog.lock.yml -f tag="java/v${{ needs.publish-maven.outputs.version }}"
288288
env:
289289
GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_GITHUB_TOKEN }}
290+

java/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,6 @@
615615
</plugins>
616616
</build>
617617

618-
619-
620618
<profiles>
621619
<!-- Enable dynamic agent loading on JDK 21+ so Mockito/ByteBuddy
622620
can attach at runtime (JEP 451). The flag does not exist on

0 commit comments

Comments
 (0)