Merge pull request #5041 from james-stocks/js/www_notes

Add website push to release process guide
This commit is contained in:
James Stocks 2020-05-21 20:35:16 +01:00 committed by GitHub
commit bf9489b3d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,3 +165,15 @@ Among other things, this promotion automatically generates [release notes](https
The release of InSpec will automatically create a PR to bump InSpec in https://github.com/chef/homebrew-chef
This should be merged - at some point this could be changed to directly committing to the repo.
## Updating inspec.io
If the release included changes to docs pages, then publish the current docs to inspec.io.
1. In your bash profile, have values exported for FASTLY_SERVICE_ID and FASTLY_API_KEY (ask Chef Helpdesk if you don't have these).
2. Make sure nodejs is installed (e.g. `brew install nodejs`)
2. Checkout `master` and `git pull` to ensure you have the latest code. Also ensure you have the `gh-pages` branch fetched.
3. `cd www`
4. `bundle install` to install the www directory's gem bundle. Depending on your Ruby setup you may need to use the `--gemfile=Gemfile` option to stop bundler from installing the root gem set.
5. Run `bundle exec rake www PUSH=1` to do a complete build, push, publish and cache clear of the website.
6. Check http://www.inspec.io for expected changes. Fastly will clear cache after about 30 seconds.