Skip to content

Commit

Permalink
Add docs re stable branch (#4444)
Browse files Browse the repository at this point in the history
* Add docs re stable branch

* Update HOW_TO_RELEASE.md

Co-authored-by: keewis <[email protected]>

Co-authored-by: keewis <[email protected]>
  • Loading branch information
max-sixty and keewis authored Sep 22, 2020
1 parent 57ae5a4 commit 4f414f2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions HOW_TO_RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ upstream https://github.com/pydata/xarray (push)

1. Ensure your master branch is synced to upstream:
```sh
git switch master
git pull upstream master
```
2. Confirm there are no commits on stable that are not yet merged
([ref](https://github.com/pydata/xarray/pull/4440)):
```sh
git merge upstream stable
```
2. Add a list of contributors with:
```sh
git log "$(git tag --sort="v:refname" | sed -n 'x;$p').." --format=%aN | sort -u | perl -pe 's/\n/$1, /'
Expand Down Expand Up @@ -81,12 +87,12 @@ upstream https://github.com/pydata/xarray (push)
```
15. Update the stable branch (used by ReadTheDocs) and switch back to master:
```sh
git checkout stable
git switch stable
git rebase master
git push --force upstream stable
git checkout master
git switch master
```
It's OK to force push to 'stable' if necessary. (We also update the stable
It's OK to force push to `stable` if necessary. (We also update the stable
branch with `git cherry-pick` for documentation only fixes that apply the
current released version.)
16. Add a section for the next release {0.X.Y+1} to doc/whats-new.rst:
Expand Down

0 comments on commit 4f414f2

Please sign in to comment.