To use the workflows defined in this repository you
can call them in you project workflow jobs where
<worflow> needs to be replaced with the yaml file name present in the workflows folder. A ref,
which in this example is the main branch, needs to be specific when calling workflows.
jobs:
call-workflow:
uses: orbinson/workflows/.github/workflows/<workflow>.yml@mainThe aem-maven-build workflow uses a Java 11 environment and a build cache to
perform a mvn install.
Example:
jobs:
call-workflow:
uses: orbinson/workflows/.github/workflows/aem-maven-build.yml@mainThe github-release workflow will create a GitHub release by performing the following actions
- Update the
CHANGELOG.mdfile where the[Unreleased]section is replaced with the providedversionand a new[Unreleased]section is created - Updated
CHANGELOG.mdis committed and tagged with the providedversion - A GitHub release is created version tag
The following inputs should be provided for the workflow
| Key | Description |
|---|---|
version |
Semantic version of release to be created |
Example:
jobs:
call-workflow:
uses: orbinson/workflows/.github/workflows/github-release.yml@main
with:
version: 1.0.0The maven-release workflow uses a Java 11 environment and a build cache to perform to following actions
- Remove
SNAPSHOTfrom the project version - Update
CHANGELOG.md - Deploy to Maven repository
- Tag, commit and push stable version
- Create GitHub release with
CHANGELOG.mdand released artifacts - Increment development version
The workflow allows to specify if you need to
- Release to the project Maven repository
- Create GitHub release
- Push changes
In order to use the workflow you need to set the following secrets
| secret | description |
|---|---|
username |
Username to deploy to maven repository |
password |
Password to deploy to maven repository |
gpg-passphrase |
GPG passphrase to sign maven artifacts |
gpg-private-key |
GPG private key to sign maven artifacts |
Example:
jobs:
call-workflow:
uses: orbinson/workflows/.github/workflows/maven-release.yml@main
with:
central: true
github: true
push: true
secrets:
username: ${{ secrets.SONATYPE_USERNAME }}
password: ${{ secrets.SONATYPE_PASSWORD }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}