- Generate the change log using the script changelog.sh. The script must be run from the repo root directory (ie ./scripts/changelog.sh )
- Update all package.json files to define the new version, eg 0.7.0 and regen package-lock.json (PR 1)
- create a release on Github with the changelog details and mark it pre-release
- Update all the package.json files to define a new unstable version, eg 0.7.1-unstable and regen package-lock.json (PR 2)
- Create a release in caliper-benchmarks corresponding to the new release, eg 0.7.0
There are 2 aspects here
- update an existing version
- publishing a new version and make it the default
One final point to note is that although the mike
tool manages all the documentation we still have to maintain the /assets/img directory. This is required for Caliper 0.6.0 to find a hyperledger logo in it's report.html template.
The old documentation is also currently kept in the .OldDocs
directory
- create branch newdocs based off of gh-pages
- switch to branch that contains the doc changes and change to docs directory
- run
mike deploy -b newdocs <version>
(note the commit won't be signed) - specify appropriate version for , eg0.6.0
- switch to newdocs and amend the last commit to sign it
- submit pr of newdocs to gh-pages
- create branch newdocs
- switch to branch that contains the doc changes and change to docs directory
- run
mike deploy -b newdocs <version>
(note the commit won't be signed) - specify appropriate version for , eg0.7.0
- switch to newdocs and amend the last commit to sign it
- switch back to branch that contains the doc changes
- run
mike set-default <version> -b newdocs
(note the commit won't be signed) - specify same version used for the deploy - switch to newdocs and amend the last commit to sign it
- submit pr of newdocs to gh-pages
(see https://stackoverflow.com/questions/13043357/git-sign-off-previous-commits for a way to sign multiple commits in the future)