-
Notifications
You must be signed in to change notification settings - Fork 507
Update release documentation #369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| # Releasing | ||
|
|
||
| - [Releasing](#releasing) | ||
|
neufeldtech marked this conversation as resolved.
|
||
| - [Before You Begin](#before-you-begin) | ||
| - [Local Release Preparation](#local-release-preparation) | ||
| - [Checkout latest code](#checkout-latest-code) | ||
| - [Update the CHANGELOG.md](#update-the-changelogmd) | ||
| - [Create Release Commit and Tag](#create-release-commit-and-tag) | ||
| - [Run Pre-Release Tests](#run-pre-release-tests) | ||
| - [Push Release Tag](#push-release-tag) | ||
| - [Verify Github Release](#verify-github-release) | ||
| - [Update Homebrew versions](#update-homebrew-versions) | ||
|
|
||
| ## Before You Begin | ||
|
|
||
| Ensure your local workstation is configured to be able to [Sign commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) | ||
|
|
||
| ## Local Release Preparation | ||
|
|
||
| ### Checkout latest code | ||
|
|
||
| ```bash | ||
| git checkout master | ||
| git pull origin master | ||
| ``` | ||
|
|
||
| ### Update the [CHANGELOG.md](CHANGELOG.md) | ||
|
|
||
| - Add a new version header at the top of the document, just after `# [Unreleased]` | ||
| - Update links at bottom of changelog | ||
|
|
||
| ### Create Release Commit and Tag | ||
|
|
||
| ```bash | ||
| export RELEASE_VERSION=2.x.y | ||
| git commit -a -S -m "Release $RELEASE_VERSION" | ||
|
neufeldtech marked this conversation as resolved.
|
||
| git tag -s "v$RELEASE_VERSION" # When prompted for a commit message, enter the 'release notes' style message, just like on the releases page | ||
| ``` | ||
|
|
||
| ### Run Pre-Release Tests | ||
|
|
||
| ```bash | ||
| make test-release | ||
| ``` | ||
|
|
||
| - Push to Master Branch | ||
| ```bash | ||
| git push origin master | ||
| ``` | ||
|
|
||
| ## Push Release Tag | ||
|
|
||
| - On your local machine again, push your tag to github | ||
|
|
||
| ```bash | ||
| git push origin "v$RELEASE_VERSION" | ||
| ``` | ||
|
|
||
| ## Verify Github Release | ||
|
|
||
| - Github Actions should kick off a build and release after the tag is pushed. | ||
| - Verify that a [Release gets created in Github](https://github.com/Shopify/toxiproxy/releases) and verify that the release notes look correct | ||
| - Github Actions should also attatch the built binaries to the release (it might take a few mins) | ||
|
|
||
| ## Update Homebrew versions | ||
|
|
||
| - Update [homebrew-shopify toxiproxy.rb](https://github.com/Shopify/homebrew-shopify/blob/master/toxiproxy.rb#L9) manifest | ||
| 1. Update `app_version` string to your released version | ||
| 2. Update hashes for all platforms (find the hashes in the checksums.txt from your release notes) | ||
|
|
||
| - Do a manual check of installing toxiproxy via brew | ||
| 1. While in the homebrew-shopify directory... | ||
| ```bash | ||
| brew install ./toxiproxy.rb --debug | ||
| ``` | ||
| Note: it's normal to get some errors when homebrew attempts to load the file as a Cask instead of a formula, just make sure that it still gets installed. | ||
| - PR the version update change and merge | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.