Files
eventLabs/docs/RELEASING.md
josh 91a81e761b
All checks were successful
WordPress release / release (push) Successful in 5s
Build and publish eventLabs WordPress updates from Gitea
2026-11-11 22:00:42 -05:00

2.3 KiB

Build and release eventLabs

Build from the plugin repository root with Git and Python 3.9 or newer:

python3 scripts/release.py

The script packages the committed files at HEAD. Pass a Git ref, such as v0.5.2, to build that revision instead. dist/ contains eventlabs-vX.Y.Z.zip and eventlabs-update.json. The ZIP contains burn-events/burn-events.php and its runtime files so WordPress installs or replaces the existing plugin directory. The manifest records the version, WordPress and PHP requirements, source commit, ZIP size, and SHA-256.

To publish, update the Version header and BURN_EVENTS_VERSION together in burn-events.php, commit the release, and push a matching tag:

git push origin main
git tag vX.Y.Z
git push origin vX.Y.Z

The Gitea release workflow runs on an ubuntu-latest runner with Git and Python 3. It builds the tagged commit, uploads both assets to a draft, then publishes and verifies the public downloads. The job uses Gitea's built-in token with release write access. Check the Actions tab for the result.

If a runner is unavailable, run the same release command after pushing the tag:

python3 scripts/release.py vX.Y.Z --publish

The command uses EVENTLABS_RELEASE_TOKEN if set, or your configured Git credentials for git.labs.casa. Keep credentials out of the repository and release files. If an upload stops partway through, rerun the command for the same tag to finish the draft. Publish changes to a new version rather than replacing an existing release ZIP.

The installed plugin uses WordPress's external update hook and Gitea's latest stable release API. WordPress downloads the attached ZIP over HTTPS and eventLabs verifies its size and checksum. Sites can use Dashboard → Updates → Check again to refresh the update list. WordPress's normal auto-update setting controls whether updates install automatically.

Keep the release downloads public for sites to receive updates without a Gitea account. Installations older than 0.5.2 need the first ZIP uploaded manually. Use a normal plugin installation to test the WordPress upgrade; the Docker development site's bind mount is updated through the Git checkout.