2021-03-27 18:54:08 +00:00
|
|
|
name: JReleaser
|
|
|
|
|
|
|
|
description: 'Release Java projects quickly and easily with JReleaser'
|
|
|
|
|
|
|
|
branding:
|
|
|
|
icon: 'archive'
|
|
|
|
color: 'gray-dark'
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
|
2021-03-27 19:23:46 +00:00
|
|
|
version:
|
|
|
|
description: 'The version of JReleaser to download and execute.'
|
2021-04-06 16:47:36 +00:00
|
|
|
default: 'latest'
|
2021-03-27 18:54:08 +00:00
|
|
|
required: true
|
|
|
|
|
|
|
|
arguments:
|
2021-03-27 19:23:46 +00:00
|
|
|
description: 'The command-line arguments to be passed to JReleaser.'
|
2021-03-27 18:54:08 +00:00
|
|
|
default: 'full-release'
|
|
|
|
required: true
|
|
|
|
|
2021-03-30 10:03:01 +00:00
|
|
|
working-directory:
|
|
|
|
required: true
|
|
|
|
default: ${{ github.workspace }}
|
|
|
|
description: 'The directory to change into.'
|
|
|
|
|
2021-03-27 18:54:08 +00:00
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2021-03-27 19:23:46 +00:00
|
|
|
- name: 'Download JReleaser'
|
2021-03-27 18:54:08 +00:00
|
|
|
shell: bash
|
2021-03-30 10:03:01 +00:00
|
|
|
working-directory: ${{ inputs.working-directory }}
|
2021-03-27 18:54:08 +00:00
|
|
|
run: |
|
2021-03-28 20:15:43 +00:00
|
|
|
echo "::group::📦 Download JReleaser"
|
2021-04-06 14:47:34 +00:00
|
|
|
java "${{ github.action_path }}/get_jreleaser.java" ${{ inputs.version }}
|
2021-03-29 08:57:32 +00:00
|
|
|
java -jar jreleaser-cli.jar --version
|
2021-03-27 18:54:08 +00:00
|
|
|
echo "::endgroup::"
|
2021-03-29 08:57:32 +00:00
|
|
|
|
2021-03-27 19:23:46 +00:00
|
|
|
- name: 'Execute JReleaser'
|
2021-03-27 18:54:08 +00:00
|
|
|
shell: bash
|
2021-03-30 10:03:01 +00:00
|
|
|
working-directory: ${{ inputs.working-directory }}
|
2021-03-27 18:54:08 +00:00
|
|
|
run: |
|
2021-03-29 08:57:32 +00:00
|
|
|
echo "☕ java -jar jreleaser-cli.jar ${{ inputs.arguments }}"
|
|
|
|
java -jar jreleaser-cli.jar ${{ inputs.arguments }}
|