Paul Campbell
b7f607d49c
* Add GitHub Actions for CI * Remove unused CI and release files * Ignore IntelliJ files * pom: add my parent * pom: remove redundant packaging element * pom: update scm repo * pom: upgrade to Java 1.8 * pom: remove maven-release-plugin * pom: remove opencollab distributionManagement * pom: remove releases profile * pom: add kemitix-maven-tiles: maven-plugins, enforcer, compiler-jdk-8, testing * Update readme * Version set to 1.0.2 * github: test build with JDK 8 * github: remove native-image testing
41 lines
1.2 KiB
Org Mode
41 lines
1.2 KiB
Org Mode
* Deploying using Github Actions
|
|
|
|
** Actions definition: workflow/sonatype-deploy.yml
|
|
|
|
When a GitHub Release is created, usually from a tag, this action will trigger.
|
|
|
|
Using JDK8 the software will be packaged, including running any tests.
|
|
|
|
Then the Deploy script will sign the created artifacts then deploy them according to the distributionManagement configuration in the `pom.xml`.
|
|
|
|
** Deploy Script
|
|
|
|
Uses a signing key provided from the GitHub Actions Secrets as an environment variable to sign the artifact(s) before they are then deployed.
|
|
|
|
*** Inputs
|
|
|
|
**** DEPLOY_PROJECTS (optional)
|
|
|
|
An optional list of modules in a multi-module project to be deployed. If this value is not specified, then all projects will be deployed.
|
|
|
|
** Maven Configuration
|
|
|
|
Picks up the credentials from Environment variables for authenticating both with GPG and with the target deployment server (e.g. sonatype-nexus).
|
|
|
|
*** Inputs
|
|
|
|
**** NEXUS_USERNAME
|
|
|
|
The username for your account on the deployment server.
|
|
|
|
**** NEXUS_PASSWORD
|
|
|
|
The password for your account on the deployement server.
|
|
|
|
**** GPG_KEYNAME
|
|
|
|
The key to use when signing.
|
|
|
|
**** GPG_PASSPHRASE
|
|
|
|
The passphrase to unlock the key to use when signing.
|