-
Before merging a feature, create a release branch for the next target version, e.g.
git checkout trunk git checkout -b planned-release/0.2.1
-
In GitHub, select the base branch as the
planned-release/...
branch. -
Merge feature branches into the
planned-release/...
branch.
- When the version is ready for release, inside the
planned-release/...
branch, bump the version number invip-block-data-api.php
. Change plugin header andWPCOMVIP__BLOCK_DATA_API__PLUGIN_VERSION
to match new version. - Push the
planned-release/...
branch to GitHub. - PR version changes with feature changes and merge to
trunk
.
-
In
trunk
, add a tag for the release:git checkout trunk git pull git tag -a <version> -m "Release <version>" # e.g. git tag -a 1.0.2 -m "Release 1.0.2"
-
Run
git push --tags
.
-
In the
vip-block-data-api
folder, run this command to create a plugin ZIP:git archive --prefix "vip-block-data-api/" <version> -o vip-block-data-api-<version>.zip # e.g. git archive --prefix "vip-block-data-api/" 1.0.2 -o vip-block-data-api-1.0.2.zip # # Creates a ZIP archive with the prefix folder "vip-block-data-api/" containing files from tag 1.0.2
-
Visit the vip-block-data-api create release page.
-
Select the newly created version tag in the dropdown.
-
For the title, enter the release version name (e.g.
1.0.2
) -
Add a description of release changes.
-
Attach the plugin ZIP.
-
Click "Publish release."