-
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.
composer install --no-dev
Note: If new production dependencies have been added, modify the root .gitignore
file to include new vendor/
subfolders.
Now commit these build changes in.
- When the version is ready for release, inside the
planned-release/...
branch, bump the version number invip-decoupled.php
. - Create a PR for the planned release branch (e.g. "Planned release 0.2.1") 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-decoupled-bundle
folder, run this command to create a plugin ZIP:git archive --prefix "vip-decoupled-bundle/" <version> -o vip-decoupled-bundle-<version>.zip # e.g. git archive --prefix "vip-decoupled-bundle/" 1.0.2 -o vip-decoupled-bundle-1.0.2.zip # # Creates a ZIP archive with the prefix folder "vip-decoupled-bundle/" containing files from tag 1.0.2
-
Visit the vip-decoupled-bundle 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."