Kubeflow gets minor releases twice a year. Kubeflow on Google Cloud follows the same cadence, but may also have patch releases in-between. Patch releases typically contain bug fixes, while minor releases include new features. Documentation (this repository) should stay in sync with the latest version of Kubeflow on Google Cloud.
For each minor release, we create a new branch for the relevant documentation (e.g. v1.6-release
). When a new version is released, we create a new branch of the previous version and the main
branch is updated with the content for the new version.
The versioned sites follow this convention:
googlecloudplatform.github.io/kubeflow-gke-docs
is deployed fromgh-pages
branch, which is automatically updated once new changes are pushed tomain
orv*-release
branches.- Changes to
main
branch are pushed to the./dev
directory ofgh-pages
branch, which is then reflected ongooglecloudplatform.github.io/kubeflow-gke-docs/dev
. - Changes to
v*-release
branches are pushed to./v*
subdirectories ofgh-pages
branch, which are then reflected ongooglecloudplatform.github.io/kubeflow-gke-docs/v*
. - Changes to the latest
v*-release
branch are pushed to./
subdirectory ofgh-pages
branch, which is then reflected ongooglecloudplatform.github.io/kubeflow-gke-docs/
. One need to keep this logic when releasing a minor version of Kubeflow on Google Cloud.
Whenever any documents reference any source code, you should use the version shortcode in the links, like so:
https://github.com/googlecloudplatform/kubeflow-distribution/blob/{{< params "githubbranch" >}}/...
This ensures that all the links in a versioned webpage point to the correct branch.
- Create a PR with the changes to the documentation and merge them to
main
branch. - Cherry-pick your changes to the latest
v*-release
branch. - Make sure that everything deploys successfully. If needed trigger the corresponding GitHub actions and investigate the logs.
- Test the deployment.
- Create a PR with the changes to the documentation and merge them to
main
branch. - TODO(gkcalat): fix this. As we deploy the
dev
version from themain
branch, it contains hard-coded references to the manifests from themaster
branch. Therefore, we need to add references to thelatest-version
short-code incontent/en/docs/deploy/deploy-cli.md
andcontent/en/docs/deploy/management-setup.md
. See what you need to revert from PR #7. - Create a new branch from
main
following the conventionvX.Y-release
, whereX
is a major version, andY
is a minor version. - Add the new branch to this GitHub action and replace the latest version tag in this line. The later makes sure that the latest version deploys to the root folder of
gh-pages
branch. - Update the
./config.toml
in every branch you want to release to make sure every branch includes all versions in the drop-down menu[[params.versions]]
and setarchived_version = true
for the previous version (now, you should have the latest version pointing to the newvX.Y-release
branch). - Optionally, deprecate the older version by adjusting
[[params.versions]]
and removing the corresponding subdirectories ingh-pages
branch. - Ensure that all the branches have been built and published to
gh-pages
branch. If not, trigger the corresponding GitHub actions manually. - Test the deployment.