-
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 1.55 KB
/
release_maven.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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Release Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Build and Deploy with Maven
run: |
git config --global user.email "[email protected]"
git config --global user.name "funfried"
echo ${{ secrets.GPG_SIGNING_SECRET_KEY }} | base64 --decode | gpg --batch --import
echo ${{ secrets.GPG_SIGNING_OWNERTRUST }} | base64 --decode | gpg --import-ownertrust
mvn -s .ci.settings.xml --no-transfer-progress -Prelease-commons,sonatype-oss-release deploy site site:stage scm-publish:publish-scm
mvn -s .ci.settings.xml --no-transfer-progress -Prelease-commons,github clean deploy
env:
GPG_TTY: $(tty)
MAVEN_OPTS: -Xms128m -Xmx512m
gh_username: ${{ secrets.GH_USERNAME }}
gh_token: ${{ secrets.GH_TOKEN }}
sonatype_username: ${{ secrets.SONATYPE_USERNAME }}
sonatype_password: ${{ secrets.SONATYPE_PASSWORD }}
repoToken: ${{ secrets.COVERALLS_REPOTOKEN }}
signing_keypass: ${{ secrets.GPG_PASSPHRASE }}
skipRemoteStaging: ${{ secrets.SKIP_REMOTE_STAGING }}