Skip to content

Release version 1.1.0 #2

Release version 1.1.0

Release version 1.1.0 #2

Workflow file for this run

name: Publish to Maven Central
on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'
- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import
echo "no-tty" >> ~/.gnupg/gpg.conf
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Cache Maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and publish to Maven Central
run: mvn clean deploy -P release -DskipTests -s .github/maven-settings.xml
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}