Skip to content

refactor(buildSrc): Configure publication of plugins via conventions #3

refactor(buildSrc): Configure publication of plugins via conventions

refactor(buildSrc): Configure publication of plugins via conventions #3

Workflow file for this run

name: Release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
inputs:
tag:
description: "Git tag to release from"
required: true
type: string
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.tag || github.ref }}
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Publish to OSSRH
uses: gradle/gradle-build-action@v2
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
with:
gradle-home-cache-cleanup: true
arguments: publishAllPublicationsToOSSRHRepository