2022-01-20 13:05:17 +00:00
|
|
|
name: Maven Deploy Package
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
2022-01-27 14:28:42 +00:00
|
|
|
inputs:
|
|
|
|
java-version:
|
|
|
|
description: 'Java version'
|
|
|
|
required: false
|
|
|
|
default: "15"
|
|
|
|
type: string
|
|
|
|
java-distribution:
|
|
|
|
description: 'Java distribution'
|
|
|
|
required: false
|
|
|
|
default: "adopt"
|
|
|
|
type: string
|
2022-01-20 13:05:17 +00:00
|
|
|
secrets:
|
|
|
|
server-username:
|
|
|
|
required: true
|
|
|
|
server-password:
|
|
|
|
required: true
|
|
|
|
deploy-secret-key:
|
|
|
|
required: true
|
|
|
|
deploy-secret-key-password:
|
|
|
|
required: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Deploy package
|
2022-01-27 13:58:42 +00:00
|
|
|
uses: valitydev/action-deploy-jdk-package@v1.0.14
|
2022-01-20 13:05:17 +00:00
|
|
|
with:
|
2022-01-20 15:12:20 +00:00
|
|
|
server-username: ${{ secrets.server-username }}
|
|
|
|
server-password: ${{ secrets.server-password }}
|
|
|
|
deploy-secret-key: ${{ secrets.deploy-secret-key }}
|
2022-01-24 09:16:48 +00:00
|
|
|
deploy-secret-key-password: ${{ secrets.deploy-secret-key-password }}
|
2022-01-24 10:01:12 +00:00
|
|
|
|
2022-01-27 13:58:42 +00:00
|
|
|
test-coverage:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: ${{ inputs.java-version }}
|
|
|
|
distribution: ${{ inputs.java-distribution }}
|
|
|
|
cache: 'maven'
|
|
|
|
|
|
|
|
- name: Maven Verify
|
|
|
|
run: mvn --batch-mode clean verify
|
|
|
|
|
2022-01-24 09:16:48 +00:00
|
|
|
- name: Upload code coverage
|
|
|
|
uses: codecov/codecov-action@v1
|