Repository navigation
Release workflow: build numbers, manual releases and pre-releases, only finals to Maven Central - #12
Merged
Conversation
michaeloffner
approved these changes
Nov 17, 2026
Contributor
|
Review of the release workflow (read the diff, did not run it). Overall: the flow is clear and matches the other extensions: build number from tags and Maven metadata, only finals to Central, deploy only on a push to
CI: |
GianTschingt
force-pushed
the
release-workflow
branch
from
November 17, 2026 10:11
28d5df1 to
f538e71
Compare
Contributor
Author
|
I've addressed the review comments and rebased onto
What's left: the test job will stay red until #11 is on |
michaeloffner
approved these changes
Nov 17, 2026
…ly finals to Maven Central
- the version is base.N[qualifier], N is the highest existing build + 1 (git tags,
Maven Central, Central snapshots, maven.lucee-services.com), like the other
extensions and Lucee core
- a manual run (workflow_dispatch) with deploy ticked publishes the next build
as SNAPSHOT, ALPHA, BETA, RC or final release
- only a final goes to Maven Central, SNAPSHOT, ALPHA, BETA and RC go to
maven.lucee-services.com only (shared extension-s3-upload workflow)
- ALPHA, BETA and RC get a GitHub pre-release, a final a GitHub release
- deploy only runs for a push to main or a manual run, never for a pull request
- deploy.url is set for the deploy of the lite .lex, ${revision} is resolved
in the installed pom (flatten) and has a default in source/java/pom.xml
- the tests fall back to a fixed 9.0 build when LUCEE_TEST_VERSIONS_9 is not
available (pull requests from forks)
- pass GPG_PASSPHRASE and MAVEN_USERNAME through env and test them with [ -z ], so a secret value never becomes shell syntax - runs that publish share the osgi-extension-deploy concurrency group - S3 and GitHub Releases publish the tested .lex from the build job; only a final is rebuilt, for the signed Maven Central deploy - one osgi-s3 artifact, uploaded and downloaded with matching action versions - parenthesize the GitHub release find
GianTschingt
force-pushed
the
release-workflow
branch
from
November 17, 2026 10:21
f538e71 to
b50b264
Compare
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.
The release setup of the other extensions (MongoDB, HSQLDB, Image, Redis lucee/extension-redis#34) for the OSGi extension.
Changes to
.github/workflows/main.yml(based on the Redis workflow):base.N[qualifier](1.0.0.N-SNAPSHOTby default), N is the highest existing build + 1, read from the git tags, Maven Central, the Central snapshot repository and maven.lucee-services.com, for bothorg.lucee:osgi-extensionandorg.lucee:osgi. Builds of the same ref run one after another, so two merges never get the same number.workflow_dispatch): withdeployticked it publishes the next build with the chosen qualifier:pom(the pom qualifier,-SNAPSHOT),SNAPSHOT,ALPHA,BETA,RCorrelease.mvn deploy. SNAPSHOT, ALPHA, BETA and RC run a signedmvn installand are published to maven.lucee-services.com by the sharedextension-s3-upload.yml(like the other extensions), never to Central..lexfiles, a final a GitHub release, a SNAPSHOT none.mainor a manual run, never for a pull request (before, the deploy job also ran for PRs). Runs without the deploy secrets (forks) only build and test and do not use up a build number.vars.LUCEE_TEST_VERSIONS_9is then empty and the matrix fell over before the tests started. The matrix now falls back to a fixed 9.0 build (9.0.0.1487-ALPHA, branch9.0).Changes to the poms:
pom.xml: the version is${revision}(extension.version.base1.0.0, build0, qualifier-SNAPSHOT), the flatten plugin resolves it in the installed/deployed pom (the S3 upload needs.flattened-pom.xml), anddeploy.urlis set (it was undefined, the deploy of the lite.lexused it) like in the other extensions.source/java/pom.xml:${revision}has a default, so the pom also resolves when it is built on its own. The root build still passes-Drevisionwith the version of the extension.README.md: how versions and releases work.Nothing has been published yet for
org.lucee:osgi-extension(Central, Central snapshots and maven.lucee-services.com have no metadata), so the first push tomainafter this publishes1.0.0.0-SNAPSHOT(or1.0.0.1-SNAPSHOTif a tag exists by then).Local check:
mvn clean package -Dgoal=installbuildsosgi-extension-1.0.0.0-SNAPSHOT.lex, and with-Drevision=1.0.0.7-RCit buildsosgi-extension-1.0.0.7-RC.lexwithjars/osgi-1.0.0.7-RC.jarandversion: "1.0.0.7-RC"in the manifest. No workflow run was started by hand.The tests on this branch are the ones from #9, they fail on
mainuntil #10 and #11 are merged, and "is actually active" needs a core with lucee/Lucee#3816 (LDEV-6948). So the test job of this PR is expected to be red for those reasons.