Scripts
August 18, 2023 ยท View on GitHub
Creating Releases
-
Be the version in
src/style.cssis 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.Zbranch, 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
.ziparchive will contain correctly structured files
- Due to step 1, the
- Generate new Release, targeting
-
Clean-up prep branch
- Delete branch
prep-vX.Y.Zin GitHub GUI - Delete branch
prep-vX.Y.Zlocally:git branch -D prep-vX.Y.Z
- Delete branch
Release process development
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