From f9fd1fca838a2e89e5c3fc952d4180d19cf84e97 Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Mon, 23 Oct 2023 17:20:14 -0400 Subject: [PATCH 1/2] update merge workflow to push docs build to sdk-docs repo --- .github/workflows/merge.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/merge.yaml b/.github/workflows/merge.yaml index 5528aaa41..5624150be 100644 --- a/.github/workflows/merge.yaml +++ b/.github/workflows/merge.yaml @@ -16,10 +16,15 @@ jobs: - name: Generate pdoc 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: python + commit-message: 'Python: automated documentation build - pinecone-python-client merge SHA: ${{ github.sha}}' From a77141ea8f12a581b43e83fddfdc56af301f0118 Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Mon, 23 Oct 2023 17:28:41 -0400 Subject: [PATCH 2/2] tweak commit-message --- .github/workflows/merge.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/merge.yaml b/.github/workflows/merge.yaml index 5624150be..1ef3e59c4 100644 --- a/.github/workflows/merge.yaml +++ b/.github/workflows/merge.yaml @@ -27,4 +27,4 @@ jobs: user-email: clients@pinecone.io target-branch: main target-directory: python - commit-message: 'Python: automated documentation build - pinecone-python-client merge SHA: ${{ github.sha}}' + commit-message: 'Python: automated documentation build - pinecone-python-client merge SHA: ${{ github.sha }}'