-
Be the version in
src/style.css
is set to the correct version. -
In the terminal, in root of project, run the release prep script:
./scripts/prepare-release.sh vX.Y.Z
- This will prepare a branch with the directory and files structured for compatibility with WordPress
-
Verify files and changes and then commit changes with git
-
Push prep branch to origin:
git push origin prep-vX.Y.Z
-
Go to Release page for repository in GitHub GUI
- Generate new Release, targeting
prep-vX.Y.Z
branch, creating new tag ofvX.Y.Z
- Use Generate release notes button to auto-fill contents
- Fill in remaining relevant information
- Publish release
- Due to step 1, the
.zip
archive will contain correctly structured files
- Due to step 1, the
- Generate new Release, targeting
-
Clean-up prep branch
- Delete branch
prep-vX.Y.Z
in GitHub GUI - Delete branch
prep-vX.Y.Z
locally:git branch -D prep-vX.Y.Z
- Delete branch
The unprepare-release.sh
is a convenience script for developing the release
process. It is not normally used. When developing the release process, it can
be invoked after prepare-release.sh
:
git restore scripts && ./scripts/unprepare-release.sh