Skip to content

Commit 51764c0

Browse files
edburnsCopilot
andcommitted
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>
1 parent dae36a0 commit 51764c0

2 files changed

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

0 commit comments

Comments
 (0)