Skip to content

default github action to release a maven repository

License

Notifications You must be signed in to change notification settings

eitco/maven-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

maven release github action

License

This github action starts a maven release build. It is a composite action that:

  1. optionally sets an ssh private key
    • using the ssh agent action
    • if the parameter git-ssh-private-key is not set, this step is omitted
  2. checks out the repository source code
  3. sets up a jdk and maven
  4. executes the maven release process

The action can be customized using the following parameters:

java-version

The (major) version of the jdk.

default: 17

java-distribution

The jdk distribution

default: temurin

gpg-private-key

The gpg private key to use for artifact signing. Make sure to use a github secret here.

gpg-key-name

The name of the gpg private key. Consider using a github secret here.

gpg-passphrase

The passphrase of the gpg private key. Make sure to use a github secret here.

deploy-user

The user to authenticate at the artifact repository. Consider using a github secret here.

deploy-password

The password to authenticate at the artifact repository. Make sure to use a github secret here.

global-settings-location

The path inside the repository to the global maven settings used to deploy release artifacts. The default value works for projects generated using eitcos default maven github template

default: deployment/global-settings.xml

git-ssh-private-key

An ssh private key to use in later steps e.g. to commit documentation to a github pages repository.

About

default github action to release a maven repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published