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 }}