Modernize publishing Gradle config (#69) #16
Workflow file for this run
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: | |
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 }} |