From e49227034895932ac864de8204cf3bcf83ee91d7 Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Mon, 23 Oct 2023 14:18:23 -0400 Subject: [PATCH 1/2] update merge workflow to push docs build to sdk-docs repo --- .github/workflows/merge.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 860658a4..13574e7a 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -16,10 +16,15 @@ jobs: uses: ./.github/actions/setup - name: Generate TypeDoc documentation uses: ./.github/actions/build-docs - - name: Deploy documentation to gh-pages - uses: s0/git-publish-subdir-action@develop + - name: Push documentation artifacts to sdk-docs + uses: cpina/github-action-push-to-another-repository@main env: - REPO: self - BRANCH: gh-pages - FOLDER: docs - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} + with: + source-directory: docs + destination-github-username: pinecone-io + destination-repository-name: sdk-docs + user-email: clients@pinecone.io + target-branch: main + target-directory: typescript + commit-message: 'TypeScript: automated documentation build' From 46297fef2ef8465fb8cfcda3d51c8a5ec169dac8 Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Mon, 23 Oct 2023 15:25:10 -0400 Subject: [PATCH 2/2] add merge SHA to the commit message in target repo --- .github/workflows/merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 13574e7a..1def700e 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -27,4 +27,4 @@ jobs: user-email: clients@pinecone.io target-branch: main target-directory: typescript - commit-message: 'TypeScript: automated documentation build' + commit-message: 'TypeScript: automated documentation build - pinecone-ts-client merge SHA: ${{ github.sha }}'