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
|
2022-01-31 14:44:01 +00:00
|
|
|
mm-webhook-url:
|
|
|
|
required: true
|
2022-01-20 13:05:17 +00:00
|
|
|
|
|
|
|
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-02-02 14:11:11 +00:00
|
|
|
- name: Mattermost Notification
|
|
|
|
if: always()
|
|
|
|
uses: rtCamp/action-slack-notify@v2.2.0
|
|
|
|
env:
|
|
|
|
SLACK_USERNAME: ${{ github.event.repository.name }}
|
|
|
|
SLACK_WEBHOOK: ${{ secrets.mm-webhook-url }}
|
|
|
|
SLACK_COLOR: ${{ job.status }}
|
|
|
|
SLACK_LINK_NAMES: true
|
|
|
|
SLACK_FOOTER: ""
|
|
|
|
|
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
|
2022-03-01 13:18:33 +00:00
|
|
|
uses: codecov/codecov-action@v2
|