This documentation details the release process.
Please make sure that:
- You are on the
main
branch of the repository.
git checkout main
- You have the latest version of
main
branch.
git pull
- You don't have local changes.
git status
- You are able to build the project.
yarn build
The first step into the release is to defined which version of docs.reviewpad.com is to be released.
yarn run docusaurus docs:version VERSION
Where 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-VERSION
underversioned_docs
. - Create a copy of the current
sidebars
add it as a new fileversion-VERSION-sidebars.json
underversioned_sidebars
. - Add the
VERSION
intoversions.json
file.
The next step is to run the documentation locally to make sure everything is working as expected.
yarn start
Make sure that the new version is available in the version selector.
Then, build the project.
yarn build
You 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/1
The 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 main
This 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
.