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 URI of the Sonatype Central Portal. Defaults to https://central.sonatype.com.

  • maven-central-base-uri: Base URI of Maven Central. Defaults to https://repo.maven.apache.org/maven2/.

  • 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.

  • ignore-already-exists-error: Whether the "Deployment already exists" error should be ignored. Defaults to false.

  • timeout: Maximum duration to wait for a deployment to complete. Defaults to 1h.

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

  • await-artifact: Artifact in Maven coordinates to wait for. Defaults to ``.

  • fail-on-existing-checksums: Whether to fail on existing checksums. Defaults to true.

  • deployment-name: Name of the deployment. Defaults to an auto-generated name.

Minimal Example

steps:
  - name: Deploy
    uses: spring-io/central-publish-action@5ea05c77127404d89c374ac4cd17b6ec6b0e7293 # v0.4.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@5ea05c77127404d89c374ac4cd17b6ec6b0e7293 # v0.4.0
    env:
      ACTION_STEPS_DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }}

License

Central Publish Action is Open Source software released under the Apache 2.0 license.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors