Initial implementation
This commit is contained in:
parent
c7478f18fe
commit
f25fbbb80e
3 changed files with 64 additions and 0 deletions
24
.github/workflows/test.yml
vendored
Normal file
24
.github/workflows/test.yml
vendored
Normal file
|
@ -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..."
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -0,0 +1 @@
|
||||||
|
/.idea/
|
39
action.yml
Normal file
39
action.yml
Normal file
|
@ -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 }}
|
Loading…
Reference in a new issue