Skip to content

[maven-release-plugin] prepare release v1.0.8 #1

[maven-release-plugin] prepare release v1.0.8

[maven-release-plugin] prepare release v1.0.8 #1

Workflow file for this run

name: Deploy to OSSRH
on:
push:
tags:
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-22.04
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
GPG_SECURITY_PWD: ${{ secrets.GPG_SECURITY_PWD }}
steps:
- name: Install gpg secret key
run: |-
# Install gpg secret key
cat <(echo -e "${{ secrets.GPG_SECURITY_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: Set up maven settings
uses: s4u/[email protected]
with:
servers: |
[{
"id": "ossrh",
"username": "${{ secrets.OSSRH_USERNAME }}",
"password": "${{ secrets.OSSRH_TOKEN }}"
}]
- name: Deploy to OSSRH
run: mvn -P+release -Djava.version=17 -DskipTests=true clean deploy