build: use JReleaser for PR builds (same layout as early-access)#2566
Open
maxandersen wants to merge 1 commit into
Open
build: use JReleaser for PR builds (same layout as early-access)#2566maxandersen wants to merge 1 commit into
maxandersen wants to merge 1 commit into
Conversation
Add two workflows: - publish-pr-build: triggered via workflow_run after ci-build succeeds on a PR. Downloads the build artifact, packages it as jbang.tar/zip, creates a release in jbangdev/jbang-pr-builds tagged pr-<number>, and comments on the PR with install instructions. - cleanup-pr-builds: deletes the release when the PR is closed/merged (via pull_request_target), plus a weekly cron that removes any releases older than 30 days as a safety net. Users can test a PR build with: JBANG_DOWNLOAD_URL=https://github.com/jbangdev/jbang-pr-builds/releases/download/pr-NNN/jbang.tar jbang version Prerequisites: - Create jbangdev/jbang-pr-builds repo (public, empty) - Add PR_BUILDS_TOKEN secret to jbangdev/jbang with write access to jbangdev/jbang-pr-builds releases
Contributor
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Follow-up to #2562. Reworks
publish-pr-build.ymlto use JReleaser instead of manually packaging tar/zip files.What changed
shared-buildartifact (not justshared-build-jbang) — has pre-builtjbang.tar,jbang.zip, versioned variants, and checksumsjbang-pr-buildsrepo:JRELEASER_RELEASE_GITHUB_REPO=jbang-pr-buildsJRELEASER_RELEASE_GITHUB_TAG_NAME=pr-<number>JRELEASER_SIGNING_ACTIVE=NEVER(no GPG for PR builds)jreleaser.ymlResult
PR build releases have the exact same artifact layout as early-access — same filenames, checksums, native bundles. No hand-rolled packaging.