Skip to content

Commit 89b4184

Browse files
edburnsCopilot
andcommitted
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>
1 parent 1733375 commit 89b4184

2 files changed

Lines changed: 21 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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,24 @@ 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+
echo "Triggering site deployment for version ${VERSION} (tag: ${TAG})"
302+
gh workflow run deploy-site.yml \
303+
--repo github/copilot-sdk-java \
304+
-f version="${VERSION}" \
305+
-f publish_as_latest=true \
306+
-f monorepo_tag="${TAG}"
307+
echo "### Site Deployment" >> $GITHUB_STEP_SUMMARY
308+
echo "Triggered deploy-site.yml on github/copilot-sdk-java for version ${VERSION}" >> $GITHUB_STEP_SUMMARY
309+
env:
310+
GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_GITHUB_TOKEN }}
311+

0 commit comments

Comments
 (0)