ci: automated release workflow (install + update packages)#13
Merged
Conversation
Tagging vX.Y.Z now builds two artifacts and publishes a GitHub Release: - linkforge-vX.Y.Z.zip: full self-hostable install package - linkforge-update-vX.Y.Z.zip: incremental package for the in-app updater Build logic lives in .github/scripts/ and replaces the old local PowerShell packaging scripts. Documented the release steps in CONTRIBUTING.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
ReleaseGitHub Actions workflow that triggers when av*tag is pushed, builds the distributable packages, and publishes a GitHub Release with auto-generated notes. This replaces the old local PowerShell packaging scripts with a reproducible, CI-built release.Artifacts produced per tag
linkforge-v<version>.zipvendor/and compiledpublic/build, with dev-only files (tests, CI, JS build configs) stripped. Files sit at the archive root for extract-into-webroot installs.linkforge-update-v<version>.zipupdate.json+files/…exactly asApp\Services\Update\Updaterexpects.How it works
.github/workflows/release.yml— sets up PHP 8.2 + Node 20, runscomposer install --no-dev+npm ci && npm run build, then calls the two build scripts and publishes viasoftprops/action-gh-release..github/scripts/build-install-zip.sh—git archiveof tracked files + productionvendor/+ built assets, minus dev tooling..github/scripts/build-update-zip.sh— diffs the previous tag to collect only changed runtime files, generates theupdate.jsonmanifest, bundles rebuilt assets when front-end sources changed.Release process (also documented in CONTRIBUTING.md)
config/linkforge.phpversion via a PR.git tag v1.1.0 && git push origin v1.1.0.Notes
update.jsonlayout verified againstUpdater::inspect()/apply()(version-must-exceed-current is enforced there).