Skip to content

Avoid allocations in ChannelPoolPartioning (#2158) #39

Avoid allocations in ChannelPoolPartioning (#2158)

Avoid allocations in ChannelPoolPartioning (#2158) #39

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
inputs:
snapshot:
description: 'Deploy SNAPSHOT'
type: boolean
default: false
permissions:
contents: read
jobs:
deploy:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: 'corretto'
java-version: '11'
- name: Grant Permission
run: chmod +x ./mvnw
- name: Validate SNAPSHOT version
if: github.event_name == 'push' || inputs.snapshot == true
run: |
VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
if [[ "$VERSION" != *-SNAPSHOT ]]; then
echo "::error::Version $VERSION is not a SNAPSHOT version"
exit 1
fi
- name: Remove old Maven Settings
run: rm -f /home/runner/.m2/settings.xml
- name: Maven Settings
uses: s4u/maven-settings-action@v4.0.0
with:
servers: |
[{
"id": "central",
"username": "${{ secrets.OSSRH_USERNAME }}",
"password": "${{ secrets.OSSRH_PASSWORD }}"
}]
- name: Import GPG
uses: crazy-max/ghaction-import-gpg@v7.0.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Deploy
env:
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: ./mvnw -B -ntp deploy -DskipTests -Dgpg.keyname=${GPG_KEY_NAME} -Dgpg.passphrase=${GPG_PASSPHRASE}