release-action/action.yml
Andres Almiray 9aff858685 Improved UX
- Gracefully handle URL not found
- Gracefully handle I/O error
- Add emojis
- Use a stable JAR file name
2021-03-29 10:57:32 +02:00

36 lines
900 B
YAML

name: JReleaser
description: 'Release Java projects quickly and easily with JReleaser'
branding:
icon: 'archive'
color: 'gray-dark'
inputs:
version:
description: 'The version of JReleaser to download and execute.'
default: 'early-access'
required: true
arguments:
description: 'The command-line arguments to be passed to JReleaser.'
default: 'full-release'
required: true
runs:
using: 'composite'
steps:
- name: 'Download JReleaser'
shell: bash
run: |
echo "::group::📦 Download JReleaser"
java "${{ github.action_path }}/copy.java" ${{ inputs.version }}
java -jar jreleaser-cli.jar --version
echo "::endgroup::"
- name: 'Execute JReleaser'
shell: bash
run: |
echo "☕ java -jar jreleaser-cli.jar ${{ inputs.arguments }}"
java -jar jreleaser-cli.jar ${{ inputs.arguments }}