Skip to content

Commit

Permalink
Docs: Release: Suggest lighter SVN checkout (#14259)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and youknowriad committed Mar 20, 2019
1 parent fe13ba7 commit 355f4f5
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions docs/contributors/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ If a bug is found in a release candidate and a fix is committed to `master`, we
5. Tag the RC version. `git tag vx.x.0-rc.2` from the release branch.
6. Push the tag `git push --tags`.
7. Merge the version bump pull request and avoid removing the release branch.
8. Follow the steps in [build the plugin](#build-the-plugin) and [publish the release on GitHub](#publish-the-release-on-github).
8. Follow the steps in [build the plugin](#build-the-plugin) and [publish the release on GitHub](#publish-the-release-on-github).

You can copy the existing changelog from the previous release candidate. Let other contributors know that a new release candidate has been released in the [`#core-editor` channel](https://wordpress.slack.com/messages/C02QB2JS7) and the call for testing post.

Expand Down Expand Up @@ -144,11 +144,11 @@ Creating a release involves:

You'll need to use Subversion to publish the plugin to WordPress.org.

1. Do an SVN checkout of `https://wordpress.org/plugins/gutenberg/`:
* If this is your first checkout, run: `svn checkout https://plugins.svn.wordpress.org/gutenberg`
1. Do an SVN checkout of `https://wordpress.org/plugins/gutenberg/trunk`:
* If this is your first checkout, run: `svn checkout https://plugins.svn.wordpress.org/gutenberg/trunk`
* If you already have a copy, run: `svn up`
2. Delete the contents of `trunk` except for the `readme.txt` and `changelog.txt` files (these files don’t exist in the `git` repo, only in Subversion).
3. Extract the contents of the zip file to `trunk`.
2. Delete the contents except for the `readme.txt` and `changelog.txt` files (these files don’t exist in the `git` repo, only in Subversion).
3. Extract the contents of the zip file.
4. Edit `readme.txt`, replacing the changelog for the previous version with the current release's changelog.
5. Add the changelog for the current release to `changelog.txt`.
6. Add new files/remove deleted files from the repository:
Expand All @@ -158,17 +158,16 @@ svn st | grep '^\?' | awk '{print $2}' | xargs svn add
# Delete old files:
svn st | grep '^!' | awk '{print $2}' | xargs svn rm
```
7. Commit the new version to `trunk`:
7. Commit the new version:
```bash
# Replace vX.X.X with your version:
svn ci -m "Committing Gutenberg version vX.X.X"
# Replace X.X.X with your version:
svn ci -m "Committing Gutenberg version X.X.X"
```
8. Tag the new version. Make sure you're in the root directory of `gutenberg`, then run:
8. Tag the new version:
```bash
svn cp trunk tags/X.X.X
svn ci -m "Tagging Gutenberg version X.X.X"
svn cp https://plugins.svn.wordpress.org/gutenberg/trunk https://plugins.svn.wordpress.org/gutenberg/tags/X.X.X -m "Tagging Gutenberg version X.X.X"
```
9. Edit `trunk/readme.txt` to point to the new tag. The **Stable version** header in `readme.txt` should be updated to match the new release version number. After updating and committing that, the new version should be released:
9. Edit `readme.txt` to point to the new tag. The **Stable version** header in `readme.txt` should be updated to match the new release version number. After updating and committing that, the new version should be released:
```bash
svn ci -m "Releasing Gutenberg version X.X.X"
```
Expand Down

0 comments on commit 355f4f5

Please sign in to comment.