This documentation details the release process.
Please make sure that:
- You are on the
mainbranch of the repository.
git checkout main- You have the latest version of
mainbranch.
git pull- You don't have local changes.
git status- You are able to build the project.
yarn buildThe first step into the release is to defined which version of docs.reviewpad.com is to be released.
yarn run docusaurus docs:version VERSIONWhere VERSION is the version to be released, e.g. 3.3.1.
This command will do the following:
- Create a copy of the current documentation and add it a new folder
version-VERSIONunderversioned_docs. - Create a copy of the current
sidebarsadd it as a new fileversion-VERSION-sidebars.jsonunderversioned_sidebars. - Add the
VERSIONintoversions.jsonfile.
The next step is to run the documentation locally to make sure everything is working as expected.
yarn startMake sure that the new version is available in the version selector.
Then, build the project.
yarn buildYou should be able to build the project without any errors.
The project contains a set of Reviewpad configurations used for built-ins showcase and use cases.
If you have updated or added any new Reviewpad configuration please make sure you test it.
For that you can use the checker.sh script.
./checker.sh <local_location_of_your_reviewpad_cli> <directory_to_look_for_yml_configurations> <github_token> <github_repo>e.g.
./checker.sh ~/reviewpad-cli ./docs GITHUB_TOKEN https://github.com/mascarilha/paddy/pull/1The next step is to commit and push these changes into the main branch.
Before commit please add the files that were created by the previous step:
git add .Then commit the changes following the commit syntax:
git commit -m "feat(release): version VERSION"Where VERSION is the version to be released, e.g. 3.3.1.
After this you can push the changes into the main branch which will trigger the deployment.
git push origin mainThis will deploy the documentation into github pages which will be live at docs.reviewpad.com.
You can check the status of the deployment here.
The last step is to update the search index in algolia.
Go to algolia crawler and click on Restart crawling.
You can delete/remove versions as well.
Remove the version from versions.json.
Example:
[
"2.0.0",
"1.9.0",
- "1.8.0"
]Delete the versioned docs directory. Example: versioned_docs/version-1.8.0.
Delete the versioned sidebars file. Example: versioned_sidebars/version-1.8.0-sidebars.json.