Add plugin zip build task and CI release artifact #12
Reference in New Issue
Block a user
Delete Branch "feature/build-and-release"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a local build task and a CI artifact build on merge to
main.Local build —
composer buildRuns
bin/build-zip.sh, producingdist/<slug>-<version>.zipready to upload via wp-admin → Plugins → Add New → Upload Plugin.unsupervised-schedular/folderuninstall.php,src/,templates/,assets/, plus a production (no-dev) optimized Composer autoloadertests/,docs/,composer.json, tooling configs, and all dev dependenciesVerified: 27 plugin classes present in the optimized classmap; dev deps and test/config files confirmed absent.
CI artifact on merge to main
New
buildjob in.gitea/workflows/ci.yml:main(i.e. after a merge)needs: [lint, static-analysis, test, no-debug]— builds only once quality gates passcomposer buildand uploadsdist/*.zipviaactions/upload-artifact@v3, namedunsupervised-schedular-<version>Also ignores
build/anddist/.Caveats
zip(catthehackerubuntu-latestdoes) and that Actions artifacts are enabled on the instance. If artifacts are disabled, we can switch to attaching the zip to a Gitea release on tag push instead.🤖 Generated with Claude Code