Skip to content

Commit 1c5e4af

Browse files
edburnsCopilotCopilot
authored
Edburns/remove pr 1524 test java publish update notes to point to docs (#1543)
* 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> * 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> * 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> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 171b8e0 commit 1c5e4af

3 files changed

Lines changed: 27 additions & 26 deletions

File tree

.github/workflows/PR-1524-test-java-publish-maven.yml

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

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,28 @@ jobs:
288288
env:
289289
GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_GITHUB_TOKEN }}
290290

291+
deploy-site:
292+
name: Deploy Documentation Site
293+
needs: [preflight, publish-maven, github-release]
294+
if: github.ref == 'refs/heads/main'
295+
runs-on: ubuntu-latest
296+
steps:
297+
- name: Trigger site deployment on standalone repo
298+
run: |
299+
VERSION="${{ needs.publish-maven.outputs.version }}"
300+
TAG="java/v${VERSION}"
301+
PUBLISH_AS_LATEST=true
302+
if [ "${{ inputs.prerelease }}" = "true" ]; then
303+
PUBLISH_AS_LATEST=false
304+
fi
305+
echo "Triggering site deployment for version ${VERSION} (tag: ${TAG})"
306+
gh workflow run deploy-site.yml \
307+
--repo github/copilot-sdk-java \
308+
-f version="${VERSION}" \
309+
-f publish_as_latest="${PUBLISH_AS_LATEST}" \
310+
-f monorepo_tag="${TAG}"
311+
echo "### Site Deployment" >> $GITHUB_STEP_SUMMARY
312+
echo "Triggered deploy-site.yml on github/copilot-sdk-java for version ${VERSION}" >> $GITHUB_STEP_SUMMARY
313+
env:
314+
GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_GITHUB_TOKEN }}
315+

.github/workflows/java.notes.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
⚠️ **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.
66

77
📦 [View on Maven Central](https://central.sonatype.com/artifact/${GROUP_ID}/${ARTIFACT_ID}/${VERSION})
8+
9+
📖 [Documentation](https://github.github.io/copilot-sdk-java/${VERSION}/) · [Javadoc](https://github.github.io/copilot-sdk-java/${VERSION}/apidocs/index.html)
810
<!-- END_INSTALLATION_SECTION -->
911

1012
## Maven

0 commit comments

Comments
 (0)