Skip to content

Modernize publishing Gradle config (#69) #16

Modernize publishing Gradle config (#69)

Modernize publishing Gradle config (#69) #16

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
tags:
- v*
paths-ignore:
- ".github/**"
- "README.md"
jobs:
build:
runs-on: ubuntu-latest
env:
BUILDTYPE: Release
IS_LOCAL_DEVELOPMENT: false
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Build Plugins SDK
run: make build-release
- name: Prepare MavenCentral release
env:
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
run: |
echo "${GPG_KEY_CONTENTS}" | base64 -d > signing-key.gpg
shell: bash
- name: Publish to MavenCentral
run: make publish
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}