This document outlines the steps to create a new release for the KServe documentation website. Follow these steps carefully to ensure a smooth release process.
- Ensure you have the necessary permissions to make changes to the repository.
- Install the required tools:
- Node.js and npm
- Verify that the
Makefileandrelease.shscripts are up-to-date.
- Run the following command to start the release process:
make bump-version
- Enter the new version when prompted. Ensure the new version is greater than the current version.
- Check the
docusaurus.config.tsfile to ensure the following:- The
announcedVersionvariable is updated to the new version. - The new version is added to the
docsVersionDropdownfield.
- The
- Verify that the API documentation files are updated in the
docs/referencedirectory. Note that the API documentation is automatically generated as part of thebump-versionprocess in therelease.shscript.
- Start the local development server:
npm run start
- Navigate to the website in your browser and verify the following:
- The new version appears in the version dropdown.
- The announcement bar displays the correct version.
- All links and pages work as expected.
- Commit the changes:
git add . git commit -m "Release version <new_version>"
- Push the changes to the repository:
git push origin main
- Open a pull request to merge the changes into the
mainbranch. - Add a detailed description of the changes.
- Request reviews from the team.
- Once the pull request is approved, merge it into the
mainbranch. - The website will automatically deploy the changes upon merging using GitHub Actions.
- Verify the deploy GitHub Action logs to ensure the deployment was successful.
- Verify the live website to ensure the changes are reflected.
- Announce the new release on relevant channels (e.g., Slack, mailing list).
- The
release.shscript handles most of the release process automatically, including generating API documentation. - Always test the changes locally before pushing them to the repository.