lfreleng-actions/Central Publish Action

Publish Maven artifacts to Maven Central via the Central Portal REST API. Optionally signs artifacts with GPG (signing-method=gpg) or accepts artifacts pre-signed via sigul (signing-method=sigul), creates a bundle ZIP, uploads to Central Portal, and polls for deployment status.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 8, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: lfreleng-actions/central-publish-action@6af98d56275d1e4326567773533b8a0ccace6634 # v0.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
m2repo-pathPath to local Maven repository directory containing artifactsyesm2repo
central-usernameCentral Portal token usernameyes
central-tokenCentral Portal token passwordyes
signing-methodHow artifacts are signed: 'gpg' (this action imports gpg-private-key and signs), 'sigul' (artifacts MUST be pre-signed by the caller, e.g. via lfit/sigul-sign-action, before this action runs — it only verifies the .asc files exist), or 'none' (no signing; for dry-run / non-Central use).nogpg
gpg-private-keyGPG private key (base64 encoded, armor format). Required only when signing-method is 'gpg'.no""
gpg-passphraseGPG key passphrase (empty if no passphrase)no""
publishing-typeAUTOMATIC (auto-publish) or USER_MANAGED (validate only)noUSER_MANAGED
dry-runIf true, create bundle but skip uploadnofalse
poll-timeoutMax seconds to wait for deployment validationno600
poll-intervalSeconds between status pollsno15
namedescription
deployment_idCentral Portal deployment ID
deployment_statusFinal deployment status
bundle_pathPath to created bundle ZIP