Release #37
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 | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [closed] | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v2 | |
- name: Configure JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 11 | |
distribution: 'adopt' | |
- name: Configuring Maven Cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Configure Maven Credentials and GPG Key | |
run: ./builder.sh config_maven | |
env: | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
- name: Configure GPG Key | |
run: ./builder.sh config_gpg | |
env: | |
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
- name: Compute Release Version | |
run: | | |
. builder.conf | |
echo "RELEASE_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV | |
echo "CHANGE_LOG=$(git log -1 --pretty=%b)" >> $GITHUB_ENV | |
- name: Publish to Sonatype Staging Repository | |
run: ./builder.sh remote | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.RELEASE_VERSION }} | |
release_name: v${{ env.RELEASE_VERSION }} | |
body: ${{ env.CHANGE_LOG }} | |
draft: false | |
prerelease: false |