DOC-1409 Add CI/CD pipeline for deploying and previewing API docs #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new GitHub Actions workflow to automate the deployment and diff-checking of API documentation using Bump.sh. The workflow is triggered on pushes and pull requests to the
mainbranch and includes three main jobs: determining affected API documentation, deploying updated documentation, and checking API diffs for pull requests.New GitHub Actions Workflow for API Documentation
Workflow Trigger and Permissions: The workflow, defined in
.github/workflows/bump.yml, is triggered on pushes and pull requests to themainbranch and includes permissions for reading repository contents and writing pull request comments.Determine Affected Documentation: The
determine-doc-idsjob identifies which API documentation folders (admin,cloud-controlplane,cloud-dataplane,schema-registry,http-proxy) have changes. It also accounts for shared resources that might impact multiple APIs and generates a matrix of affected documentation IDs.Deploy Updated Documentation: The
deploy-docjob deploys updated API documentation to Bump.sh for affected APIs. It determines the appropriate file format (YAML or JSON) and applies overlays specific to the API or shared resources.Check API Diffs: The
api-diffjob runs during pull requests to check for API differences using Bump.sh.