Skip to content

spring-io/nexus-sync-action

Deprecation

This project is no longer maintained - use https://github.com/spring-io/central-publish-action instead!

Nexus Sync Action

A GitHub action for publishing a local directory containing artifacts to the Sonatype Central Portal.

Overview

This action can be used to deploy artifacts to the Sonatype Central Portal.

Configuration

Required Inputs

  • token-name: Token name for authentication with the Central Portal

  • token: Token for authentication with the Central Portal

Optional Inputs

  • base-uri: Base URL of the Sonatype Central Portal. Defaults to https://central.sonatype.com.

  • publishing-type: Publishing type of the artifacts. Can be automatic or user_managed. Defaults to automatic.

  • dir: Directory containing the artifacts to deploy. Defaults to nexus.

  • drop-on-failure: Whether the deployment should automatically be dropped on failure. Defaults to true.

  • timeout: Maximum duration to wait for a deployment to complete. Defaults to 30m.

  • sleep-between-retries: Duration between deployment status retries. Defaults to 1m.

Minimal Example

steps:
  - name: Deploy
    uses: spring-io/nexus-sync-action@main
    with:
      token-name: ${{ secrets.SONATYPE_TOKEN_NAME }}
      token: ${{ secrets.SONATYPE_TOKEN }}

Debugging

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/nexus-sync-action@main
    env:
      ACTION_STEPS_DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }}

License

Nexus Sync Action is Open Source software released under the Apache 2.0 license.