A GitHub action for publishing a local directory containing artifacts to the Sonatype Central Portal.
-
token-name: Token name for authentication with the Central Portal -
token: Token for authentication with the Central Portal
-
base-uri: Base URI of the Sonatype Central Portal. Defaults tohttps://central.sonatype.com. -
maven-central-base-uri: Base URI of Maven Central. Defaults tohttps://repo.maven.apache.org/maven2/. -
publishing-type: Publishing type of the artifacts. Can beautomaticoruser_managed. Defaults toautomatic. -
dir: Directory containing the artifacts to deploy. Defaults tonexus. -
drop-on-failure: Whether the deployment should automatically be dropped on failure. Defaults totrue. -
ignore-already-exists-error: Whether the "Deployment already exists" error should be ignored. Defaults tofalse. -
timeout: Maximum duration to wait for a deployment to complete. Defaults to1h. -
sleep-between-retries: Duration between deployment status retries. Defaults to1m. -
await-artifact: Artifact in Maven coordinates to wait for. Defaults to ``. -
fail-on-existing-checksums: Whether to fail on existing checksums. Defaults totrue.
steps:
- name: Deploy
uses: spring-io/central-publish-action@0c03960e9b16fdfe70e2443e1d5393cbc3a35622 # v0.3.0
with:
token-name: ${{ secrets.SONATYPE_TOKEN_NAME }}
token: ${{ secrets.SONATYPE_TOKEN }}The action uses the ACTIONS_STEP_DEBUG environment variable to enable additional debug logging.
This can be configured by passing through the value of the ACTIONS_STEP_DEBUG secret that GitHub Actions sets when re-running with debug logging enabled:
steps:
- name: Deploy
uses: spring-io/central-publish-action@0c03960e9b16fdfe70e2443e1d5393cbc3a35622 # v0.3.0
env:
ACTION_STEPS_DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }}Central Publish Action is Open Source software released under the Apache 2.0 license.