Merge pull request #259 from funfried/release/1.15.x #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
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 -Pcoveralls coveralls:report | |
mvn -s .ci.settings.xml --no-transfer-progress -Prelease-commons,github clean deploy | |
bash <(curl -s https://codecov.io/bash) | |
env: | |
GPG_TTY: $(tty) | |
MAVEN_OPTS: -Xms128m -Xmx512m --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED | |
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 }} | |
nvd_api_key: ${{ secrets.NVD_API_KEY }} |