From f25fbbb80ecff2bc13a0cff7fde711d4fd0e9202 Mon Sep 17 00:00:00 2001 From: Christian Stein Date: Sat, 27 Mar 2021 19:54:08 +0100 Subject: [PATCH] Initial implementation --- .github/workflows/test.yml | 24 +++++++++++++++++++++++ .gitignore | 1 + action.yml | 39 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 action.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e6028bd --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test + +on: push + +jobs: + + test: + name: 'JReleaser ${{ matrix.tag }}, Java ${{ matrix.java }}, ${{ matrix.os }}' + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + java: [ 11 ] + tag: [ early-access ] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - uses: ./ + with: + arguments: --version + - run: echo "Here be assertions and dragons..." diff --git a/.gitignore b/.gitignore index e69de29..85e7c1d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/.idea/ diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..88ab83d --- /dev/null +++ b/action.yml @@ -0,0 +1,39 @@ +name: JReleaser + +description: 'Release Java projects quickly and easily with JReleaser' + +branding: + icon: 'archive' + color: 'gray-dark' + +inputs: + + tag: + description: 'The GitHub releases tag that points to JReleaser''s executable JAR file.' + default: 'early-access' + required: true + + jar: + description: 'The name of the executable JAR file to download and execute.' + default: 'jreleaser-tool-provider-0.1.0-SNAPSHOT.jar' + required: true + + arguments: + description: 'The arguments to be passed to JReleaser.' + default: 'full-release' + required: true + +runs: + using: 'composite' + steps: + - name: 'Initialize JReleaser' + shell: bash + run: | + echo "Initialize JReleaser" + wget https://github.com/jreleaser/jreleaser/releases/download/${{ inputs.tag }}/${{ inputs.jar }} + echo "::endgroup::" + - name: 'Launch JReleaser' + shell: bash + run: | + echo "java -jar ${{ inputs.jar }} ${{ inputs.arguments }}" + java -jar ${{ inputs.jar }} ${{ inputs.arguments }}