GH-274 - Release version 1.0.0. #40
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
name: Release to Maven Central | |
on: | |
push: | |
branches: [ release/release ] | |
jobs: | |
build: | |
name: Release project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'maven' | |
- name: Install GPG key | |
run: | | |
echo "${{ secrets.GPG_PRIVATE_KEY }}" > gpg.asc | |
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --passphrase-fd 0 --import gpg.asc | |
- name: Release to Sonatype OSSRH | |
env: | |
SONATYPE_USER: ${{ secrets.OD_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.OD_PASSWORD }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
run: | | |
./mvnw -B clean install -DskipTests | |
./mvnw -B clean deploy -Pci,sonatype -s settings.xml | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v1 | |
- name: Deploy documentation | |
env: | |
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
run: ./mvnw -B clean deploy -Pdocumentation |