From 1733375bffa3ba5f756b5ff7f09df115eb2671da Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Mon, 1 Jun 2026 16:11:10 -0700 Subject: [PATCH 1/3] Restore Documentation and Javadoc links in release notes template Add back the Documentation and Javadoc links that were present in copilot-sdk-java releases but removed during the mono-repo migration. The links use the ${VERSION} variable so they resolve correctly for each release via envsubst. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/java.notes.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/java.notes.template b/.github/workflows/java.notes.template index d34d39c62..e209a110b 100644 --- a/.github/workflows/java.notes.template +++ b/.github/workflows/java.notes.template @@ -5,6 +5,8 @@ โš ๏ธ **Artifact versioning plan:** Releases of this implementation track releases of the reference implementation. For each release of the reference implementation, there may follow a corresponding release of this implementation with the same number as the reference implementation. Release identifiers of the reference implementation are in the form `vMaj.Min.Micro`. For example v0.1.32. The corresponding maven version for the release will be `Maj.Min.Micro-java.N`, where `Maj`, `Min` and `Micro` are the corresponding numbers for the reference implementation release, and `N` is a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in the `docs/adr` directory of the source code. ๐Ÿ“ฆ [View on Maven Central](https://central.sonatype.com/artifact/${GROUP_ID}/${ARTIFACT_ID}/${VERSION}) + +๐Ÿ“– [Documentation](https://github.github.io/copilot-sdk-java/${VERSION}/) ยท [Javadoc](https://github.github.io/copilot-sdk-java/${VERSION}/apidocs/index.html) ## Maven From 89b41842a86556805e57b5fa3d64cf587615b933 Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Mon, 1 Jun 2026 16:17:56 -0700 Subject: [PATCH 2/3] Integrate deploy-site job into java-publish-maven workflow Move the documentation site deployment trigger from the temporary PR-1524 test workflow into java-publish-maven.yml as a new job that runs after the GitHub Release job. The version is sourced dynamically from publish-maven outputs. Remove the standalone test workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../PR-1524-test-java-publish-maven.yml | 26 ------------------- .github/workflows/java-publish-maven.yml | 21 +++++++++++++++ 2 files changed, 21 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/PR-1524-test-java-publish-maven.yml diff --git a/.github/workflows/PR-1524-test-java-publish-maven.yml b/.github/workflows/PR-1524-test-java-publish-maven.yml deleted file mode 100644 index 9cab99a09..000000000 --- a/.github/workflows/PR-1524-test-java-publish-maven.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Temporary test workflow for PR #1524 โ€” triggers site deployment on standalone repo. -# Will be merged into java-publish-maven.yml once validated. -name: "PR-1524: Test Site Deployment Trigger" - -on: - workflow_dispatch: - -jobs: - deploy-site: - name: Deploy Documentation Site (Test) - runs-on: ubuntu-latest - steps: - - name: Trigger site deployment on standalone repo - run: | - VERSION="1.0.0-beta-10-java.5" - TAG="java/v${VERSION}" - echo "Triggering site deployment for version ${VERSION} (tag: ${TAG})" - gh workflow run deploy-site.yml \ - --repo github/copilot-sdk-java \ - -f version="${VERSION}" \ - -f publish_as_latest=true \ - -f monorepo_tag="${TAG}" - echo "### Site Deployment" >> $GITHUB_STEP_SUMMARY - echo "Triggered deploy-site.yml on github/copilot-sdk-java for version ${VERSION}" >> $GITHUB_STEP_SUMMARY - env: - GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_GITHUB_TOKEN }} diff --git a/.github/workflows/java-publish-maven.yml b/.github/workflows/java-publish-maven.yml index 24a5cea38..239fa4ff7 100644 --- a/.github/workflows/java-publish-maven.yml +++ b/.github/workflows/java-publish-maven.yml @@ -288,3 +288,24 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_GITHUB_TOKEN }} + deploy-site: + name: Deploy Documentation Site + needs: [preflight, publish-maven, github-release] + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + steps: + - name: Trigger site deployment on standalone repo + run: | + VERSION="${{ needs.publish-maven.outputs.version }}" + TAG="java/v${VERSION}" + echo "Triggering site deployment for version ${VERSION} (tag: ${TAG})" + gh workflow run deploy-site.yml \ + --repo github/copilot-sdk-java \ + -f version="${VERSION}" \ + -f publish_as_latest=true \ + -f monorepo_tag="${TAG}" + echo "### Site Deployment" >> $GITHUB_STEP_SUMMARY + echo "Triggered deploy-site.yml on github/copilot-sdk-java for version ${VERSION}" >> $GITHUB_STEP_SUMMARY + env: + GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_GITHUB_TOKEN }} + From 399de2576070f05be620afa89f175ab70e73801d Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Mon, 1 Jun 2026 21:55:37 -0700 Subject: [PATCH 3/3] Set PUBLISH_AS_LATEST according to whether or not this is a preview release. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/java-publish-maven.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/java-publish-maven.yml b/.github/workflows/java-publish-maven.yml index 239fa4ff7..84c957fee 100644 --- a/.github/workflows/java-publish-maven.yml +++ b/.github/workflows/java-publish-maven.yml @@ -298,11 +298,15 @@ jobs: run: | VERSION="${{ needs.publish-maven.outputs.version }}" TAG="java/v${VERSION}" + PUBLISH_AS_LATEST=true + if [ "${{ inputs.prerelease }}" = "true" ]; then + PUBLISH_AS_LATEST=false + fi echo "Triggering site deployment for version ${VERSION} (tag: ${TAG})" gh workflow run deploy-site.yml \ --repo github/copilot-sdk-java \ -f version="${VERSION}" \ - -f publish_as_latest=true \ + -f publish_as_latest="${PUBLISH_AS_LATEST}" \ -f monorepo_tag="${TAG}" echo "### Site Deployment" >> $GITHUB_STEP_SUMMARY echo "Triggered deploy-site.yml on github/copilot-sdk-java for version ${VERSION}" >> $GITHUB_STEP_SUMMARY