-
Notifications
You must be signed in to change notification settings - Fork 95
39 lines (38 loc) · 1.05 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
workflow_call:
inputs:
deploy-url:
description: 'The maven repository to deploy to'
required: true
type: string
secrets:
DEPLOY_USERNAME:
required: true
DEPLOY_PASSWORD:
required: true
PGP_SECRET:
required: true
PGP_PASSPHRASE:
required: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: "publish"
env:
MAVEN_DEPLOY_USERNAME: ${{ secrets.DEPLOY_USERNAME }}
MAVEN_DEPLOY_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
MAVEN_DEPLOY_URL: ${{ inputs.deploy-url }}