Skip to content

Commit

Permalink
Add actions for maven builds
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Sep 19, 2023
1 parent 5c4a7b0 commit 0608a31
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 96 deletions.
15 changes: 7 additions & 8 deletions actions/java-maven-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ This action builds Java artifacts using Maven.

## Input Parameters

| Name | Required | Default Value | Type | Description |
| ------------------- | :------: | :------------: | :----: | ------------------------------------------------------------------------------------------------------ |
| build-artifact-name || build-artifact | string | [Artifact](https://github.com/actions/upload-artifact) name that is used for uploading build artifacts |
| java-distribution || microsoft | string | [Java distribution](https://github.com/actions/setup-java#supported-distributions) to be installed |
| java-version || 11 | string | Java version to be installed |
| maven-version || wrapper | string | Maven version to be installed |
| working-directory || "." | string | Working directory of your Maven artifacts |
| command || compile | string | Command to run build with |
| Name | Required | Default Value | Type | Description |
| ----------------- | :------: | :-----------: | :----: | -------------------------------------------------------------------------------------------------- |
| java-distribution || microsoft | string | [Java distribution](https://github.com/actions/setup-java#supported-distributions) to be installed |
| java-version || 11 | string | Java version to be installed |
| maven-version || wrapper | string | Maven version to be installed |
| working-directory || "." | string | Working directory of your Maven artifacts |
| command || compile | string | Command to run build with |

## Usage

Expand Down
11 changes: 0 additions & 11 deletions actions/java-maven-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: "Build Java artifacts"
description: "Build Java artifacts using Maven"

inputs:
build-artifact-name:
description: "Artifact name that is used for uploading build artifacts, see https://github.com/actions/upload-artifact (Default is build-artifact)."
required: false
default: "build-artifact"
java-distribution:
description: "Java distribution to be installed. (Default is microsoft)"
required: false
Expand Down Expand Up @@ -42,10 +38,3 @@ runs:
run: mvn clean ${{ inputs.command }}
shell: bash
working-directory: ${{ inputs.working-directory }}

- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.build-artifact-name }}
path: ${{ inputs.working-directory }}/**/target/*.jar
retention-days: 1
29 changes: 0 additions & 29 deletions actions/java-maven-release-github/README.md

This file was deleted.

48 changes: 0 additions & 48 deletions actions/java-maven-release-github/action.yaml

This file was deleted.

0 comments on commit 0608a31

Please sign in to comment.