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-03-27 18:54:08 +00:00
|
|
|
default: 'early-access'
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
run: |
|
2021-03-27 19:23:46 +00:00
|
|
|
echo "::group::Download JReleaser"
|
|
|
|
JAR="jreleaser-tool-provider-${{ inputs.version }}.jar"
|
|
|
|
URL="https://github.com/jreleaser/jreleaser/releases/download/${{ inputs.version }}/$JAR"
|
2021-03-27 19:26:23 +00:00
|
|
|
java "${{ github.action_path }}/copy.java" $URL $JAR
|
2021-03-27 19:23:46 +00:00
|
|
|
java -jar $JAR --version
|
2021-03-27 18:54:08 +00:00
|
|
|
echo "::endgroup::"
|
2021-03-27 19:23:46 +00:00
|
|
|
- name: 'Execute JReleaser'
|
2021-03-27 18:54:08 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2021-03-27 19:23:46 +00:00
|
|
|
JAR="jreleaser-tool-provider-${{ inputs.version }}.jar"
|
|
|
|
echo "java -jar $JAR ${{ inputs.arguments }}"
|
|
|
|
java -jar $JAR ${{ inputs.arguments }}
|