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 URL of the Sonatype Central Portal. Defaults tohttps://central.sonatype.com
. -
publishing-type
: Publishing type of the artifacts. Can beautomatic
oruser_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
. -
timeout
: Maximum duration to wait for a deployment to complete. Defaults to30m
. -
sleep-between-retries
: Duration between deployment status retries. Defaults to1m
.
steps:
- name: Deploy
uses: spring-io/central-publish-action@0cdd90d12e6876341e82860d951e1bcddc1e51b6 # v0.2.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@0cdd90d12e6876341e82860d951e1bcddc1e51b6 # v0.2.0
env:
ACTION_STEPS_DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }}
Nexus Sync Action is Open Source software released under the Apache 2.0 license.