-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (38 loc) · 1.26 KB
/
release.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
---
name: release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
steps:
- uses: actions/checkout@v3
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 8
- name: Create settings.xml
uses: s4u/maven-settings-action@v2
with:
servers: '[{"id": "vpro-ossrh-release", "username": "vpro", "password": "${{secrets.SONATYPE_PASSWORD}}"}]'
- uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
passphrase: ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}
- uses: oleksiyrudenko/[email protected]
with:
global: true
name: 'github'
email: '[email protected]'
token: '${{ secrets.GITHUB_TOKEN }}'
- name: Release
run: mvn -Pdeploy --batch-mode -Darguments=-DskipTests release:prepare release:perform