Skip to content

spring-io/central-publish-action

Central Publish 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/central-publish-action@0cdd90d12e6876341e82860d951e1bcddc1e51b6 # v0.2.0
    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/central-publish-action@0cdd90d12e6876341e82860d951e1bcddc1e51b6 # v0.2.0
    env:
      ACTION_STEPS_DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }}

License

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •