Azure Pipelines

You can setup a Azure Pipeline.

If you’re already building with either Maven or Gradle then you might use the JReleaser Maven Plugin or the JReleaser Gradle Plugin instead.
You must configure environment variables matching the expected secrets in your pipeline.

Script

.azure-pipelines.yml
...
## Define Build Stage
steps:
  - task: JavaToolInstaller@0
    inputs:
      versionSpec: '11'
      jdkArchitectureOption: 'x64'
      jdkSourceOption: 'PreInstalled'

  - task: Maven@3
    inputs:
      mavenPomFile: 'pom.xml'
      goals: 'verify'
      javaHomeOption: 'JDKVersion'

  - script: curl -sL https://git.io/get-jreleaser > get_jreleaser.java
    displayName: 'Get the JReleaser downloader'

  - script: |
      java get_jreleaser.java
      java -jar jreleaser-cli.jar --version
    displayName: 'Download JReleaser'

  - script: |
      java -jar jreleaser-cli.jar release -c jreleaser.yml
    displayName: 'Execute JReleaser'