Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/build-and-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read version from gradle.properties
id: version
run: |
VERSION=$(grep "pineconeClientVersion" gradle.properties | cut -d'=' -f2 | tr -d ' ')
echo "CLIENT_VERSION=$VERSION" >> $GITHUB_ENV
echo "CLIENT_VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Generate Javadoc documentation
uses: ./.github/actions/build-docs
- name: Push documentation artifacts to sdk-docs
- name: Push documentation artifacts to sdk-docs (latest)
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
Expand All @@ -26,4 +32,16 @@ jobs:
user-email: clients@pinecone.io
target-branch: main
target-directory: java
commit-message: "Java: automated documentation build \n\n pinecone-java-client merge SHA: ${{ github.sha }}"
commit-message: "Java: automated documentation build (latest) \n\n pinecone-java-client merge SHA: ${{ github.sha }}"
- name: Push documentation artifacts to sdk-docs (versioned)
uses: cpina/github-action-push-to-another-repository@main
env:
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: java/v${{ env.CLIENT_VERSION }}
commit-message: "Java: automated documentation build for v${{ env.CLIENT_VERSION }} \n\n pinecone-java-client merge SHA: ${{ github.sha }}"
Loading