-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document release instructions (#530)
* release instructions * cleanup Co-authored-by: Jerry Jackson <[email protected]>
- Loading branch information
1 parent
0d48ef7
commit ecd846f
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,40 @@ | ||
# Weave Gitops Release Process | ||
|
||
The current release process for weave gitops is fairly straightforward. You need to: | ||
- Create the actual release | ||
- Update the `weave-gitops-docs` repository with documentation for the new version | ||
- Update the `CLI Installation` section of the `README.md` in the `weave-gitops` repository to reference the new version | ||
|
||
# Creating the release | ||
- Go to the `Releases` page for the weave-gitops repository | ||
- Click on `Draft a New Release` | ||
- Fill in the `Tag Version` field with the new version (format: `vN.N.N` or `vN.N.N-rc.N` for a pre-release). We have configured go-releaser to implicitly make a version ending in `-rc.N` a pre-release and one without the `rc-N` a full release (but that can be changed after the fact by editing the release if so desired). | ||
- Fill in the `Release Title` with the same version from the `Tag Version` | ||
- Click on `Publish Release` | ||
|
||
The go-releaser will spin for a bit, generating a changelog and artifacts. | ||
|
||
# Updating weave-gitops-docs | ||
Assuming any changes to user-visible behavior have already been documented for the new release (this should happen when the changes go into `weave-gitops`), you just need to create a new documentation version: | ||
- Create a branch from main | ||
- Checkout the new branch | ||
- Update `docs/installation.md`: | ||
- Put the new version in the `curl` command | ||
- Run `wego version` in a downloaded copy of the new release binary and update the `You should see:` section with the output | ||
- Create a new set of versioned documentation: | ||
- Run: | ||
|
||
```console | ||
npm run docusaurus docs:version N.N.N | ||
``` | ||
|
||
where the `N.N.N` matches the `N.N.N` from the weave gitops version. | ||
|
||
- Add and commit the new files (which will be a new directory containing copies of the files in main at the current point in time). | ||
- Create a PR and merge when approved | ||
|
||
# Updating the README | ||
- Once the release is available, change the version in the `curl` command shown in the `CLI Installation` section of the `README.md` in the weave-gitops repository | ||
- Create a PR and merge when approved | ||
|
||
That's it! |